Merge pull request #436 from dnadesign/feature/construct_fix

FIX late extensions binding
This commit is contained in:
Damian Mooyman 2016-03-01 13:27:39 +13:00
commit dde5eaa743

View File

@ -17,11 +17,14 @@ class UserForm extends Form {
parent::__construct(
$controller,
$name,
$this->getFormFields(),
$this->getFormActions(),
$this->getRequiredFields()
new FieldList(),
new FieldList()
);
$this->setFields($this->getFormFields());
$this->setActions($this->getFormActions());
$this->setValidator($this->getRequiredFields());
// Number each page
$stepNumber = 1;
foreach($this->getSteps() as $step) {