Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Remove JavaScript validation handler from CMS, it doesn't work …

…with ajax
  • Loading branch information...
commit 8d3d71027ec8007135a209b8d59278a5b30dbdd8 1 parent 020f480
@chillu chillu authored
Showing with 0 additions and 5 deletions.
  1. +0 −5 code/controllers/CMSMain.php
5 code/controllers/CMSMain.php
@@ -457,11 +457,6 @@ public function getEditForm($id = null, $fields = null) {
$validator = new RequiredFields();
- // 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.
- $validator->setJavascriptValidationHandler('prototype');
$form = new Form($this, "EditForm", $fields, $actions, $validator);
$stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?Stage=stage'));
Please sign in to comment.
Something went wrong with that request. Please try again.