Merge pull request #445 from nglasl/master

FIX Correcting issue #439, where date pickers were no longer functioning.
This commit is contained in:
Daniel Hensby 2016-03-18 14:31:02 +00:00
commit 4e5770b6bf

View File

@ -21,8 +21,10 @@ class UserForm extends Form {
new FieldList() new FieldList()
); );
$this->setFields($this->getFormFields()); $this->setFields($fields = $this->getFormFields());
$this->setActions($this->getFormActions()); $fields->setForm($this);
$this->setActions($actions = $this->getFormActions());
$actions->setForm($this);
$this->setValidator($this->getRequiredFields()); $this->setValidator($this->getRequiredFields());
// Number each page // Number each page