Permalink
Browse files

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
  • Loading branch information...
chillu committed Nov 21, 2009
1 parent 757df30 commit beb4efef0961467474df34fe1377f0af9a6b59b5
Showing with 4 additions and 0 deletions.
  1. +4 −0 forms/HtmlEditorField.php
@@ -241,6 +241,7 @@ function LinkForm() {
$contentComposite->addExtraClass('content');
+ $form->unsetValidator();
$form->loadDataFrom($this);
return $form;
@@ -315,6 +316,7 @@ function ImageForm() {
$contentComposite->addExtraClass('content');
+ $form->unsetValidator();
$form->disableSecurityToken();
$form->loadDataFrom($this);
@@ -352,6 +354,8 @@ function FlashForm() {
$contentComposite->addExtraClass('content');
+ $form->unsetValidator();
+
$form->loadDataFrom($this);
$form->disableSecurityToken();
return $form;

0 comments on commit beb4efe

Please sign in to comment.