From beb4efef0961467474df34fe1377f0af9a6b59b5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:31:11 +0000 Subject: [PATCH] ENHANCEMENT Disabling form validation for right-panel forms in CMS in HtmlEditorField. None of the fields have validation attached to them at the moment, so the generic validation output is unnecessary bloat. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92528 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/HtmlEditorField.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index f5952d86f..f23d3bf29 100755 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -241,6 +241,7 @@ class HtmlEditorField_Toolbar extends RequestHandler { $contentComposite->addExtraClass('content'); + $form->unsetValidator(); $form->loadDataFrom($this); return $form; @@ -315,6 +316,7 @@ class HtmlEditorField_Toolbar extends RequestHandler { $contentComposite->addExtraClass('content'); + $form->unsetValidator(); $form->disableSecurityToken(); $form->loadDataFrom($this); @@ -352,6 +354,8 @@ class HtmlEditorField_Toolbar extends RequestHandler { $contentComposite->addExtraClass('content'); + $form->unsetValidator(); + $form->loadDataFrom($this); $form->disableSecurityToken(); return $form;