mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #436 from dnadesign/feature/construct_fix
FIX late extensions binding
This commit is contained in:
commit
dde5eaa743
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user