Skip to content
Browse files

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
  • Loading branch information...
1 parent eef51ed commit 7f285e2bd9b5c1c54f1175edacc15728d514d52f @chillu chillu committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 code/LeftAndMain.php
View
5 code/LeftAndMain.php
@@ -853,7 +853,7 @@ function getEditForm($id = null) {
* @return Form
*/
function EmptyForm() {
- return new Form(
+ $form = new Form(
$this,
"EditForm",
new FieldSet(
@@ -872,6 +872,9 @@ function EmptyForm() {
),
new FieldSet()
);
+ $form->unsetValidator();
+
+ return $form;
}
public function myprofile() {

0 comments on commit 7f285e2

Please sign in to comment.
Something went wrong with that request. Please try again.