Merge pull request #2429 from chillu/pulls/cms-validation

Form errors in LeftAndMain response negotiation
This commit is contained in:
Stig Lindqvist 2013-09-18 14:34:55 -07:00
commit eb3cd197ac
2 changed files with 7 additions and 0 deletions

View File

@ -37,4 +37,9 @@ class CMSForm extends Form {
return $this->responseNegotiator;
}
public function FormName() {
if($this->htmlID) return $this->htmlID;
else return 'Form_' . str_replace(array('.', '/'), '', $this->name);
}
}

View File

@ -241,6 +241,8 @@ class Form extends RequestHandler {
if(isset($errorInfo['message']) && isset($errorInfo['type'])) {
$this->setMessage($errorInfo['message'], $errorInfo['type']);
}
return $this;
}
/**