diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index 46fb86f5e..97f675452 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -1301,7 +1301,9 @@ class LeftAndMain extends Controller implements PermissionProvider { // The clientside (mainly LeftAndMain*.js) rely on ajax responses // which can be evaluated as javascript, hence we need // to override any global changes to the validation handler. - $form->setValidator($validator); + if($validator != NULL){ + $form->setValidator($validator); + } } else { $form->unsetValidator(); }