From 7f285e2bd9b5c1c54f1175edacc15728d514d52f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 03:15:20 +0000 Subject: [PATCH] MINOR Unsetting any validation for LeftAndMain->EmptyForm() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92713 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 5321646d..2bf4c2ec 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -853,7 +853,7 @@ JS; * @return Form */ function EmptyForm() { - return new Form( + $form = new Form( $this, "EditForm", new FieldSet( @@ -872,6 +872,9 @@ JS; ), new FieldSet() ); + $form->unsetValidator(); + + return $form; } public function myprofile() {