mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Remove JavaScript validation handler from CMS, it doesn't work with ajax
This commit is contained in:
parent
020f480256
commit
8d3d71027e
@ -457,11 +457,6 @@ JS;
|
|||||||
$validator = new RequiredFields();
|
$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);
|
$form = new Form($this, "EditForm", $fields, $actions, $validator);
|
||||||
$form->loadDataFrom($record);
|
$form->loadDataFrom($record);
|
||||||
$stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?Stage=stage'));
|
$stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?Stage=stage'));
|
||||||
|
Loading…
Reference in New Issue
Block a user