SilverStripe 2.4.7
Hi
I am using Dataobjectmanager and am trying to find a way to include validation on the popup. I was rooting through the code and came across this.
parent::__construct($controller, $name, $fields, $actions, $validator);
if ($this->validator instanceof Validator) {
$this->validator->setJavascriptValidationHandler('none');
}
else {
$this->unsetValidator();
}
(lines 859-865 of DataObjectManager.php)
I'm confused about what this code is actually doing. I know it is calling the constructor and then checking for an instance of Validator but why is it setting the JavascriptValidationHandler to 'none'?
Thanks