From cbe47268fcbbc5dbabb100e9b63bb54a445d3206 Mon Sep 17 00:00:00 2001 From: Nathan Glasl Date: Fri, 18 Mar 2016 16:38:40 +1100 Subject: [PATCH] Correcting issue #439, where date pickers were no longer functioning. --- code/forms/UserForm.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/forms/UserForm.php b/code/forms/UserForm.php index cd1f38c..2b69da5 100644 --- a/code/forms/UserForm.php +++ b/code/forms/UserForm.php @@ -21,8 +21,10 @@ class UserForm extends Form { new FieldList() ); - $this->setFields($this->getFormFields()); - $this->setActions($this->getFormActions()); + $this->setFields($fields = $this->getFormFields()); + $fields->setForm($this); + $this->setActions($actions = $this->getFormActions()); + $actions->setForm($this); $this->setValidator($this->getRequiredFields()); // Number each page