mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
fixes late extensions binding
Construct adds extensions, so calling functions which have extend calls in them before the parent:constructor means the extend calls will never find any extensions.
This commit is contained in:
parent
726e033eff
commit
249e7ca0d1
@ -17,11 +17,14 @@ class UserForm extends Form {
|
|||||||
parent::__construct(
|
parent::__construct(
|
||||||
$controller,
|
$controller,
|
||||||
$name,
|
$name,
|
||||||
$this->getFormFields(),
|
new FieldList(),
|
||||||
$this->getFormActions(),
|
new FieldList()
|
||||||
$this->getRequiredFields()
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$this->setFields($this->getFormFields());
|
||||||
|
$this->setActions($this->getFormActions());
|
||||||
|
$this->setValidator($this->getRequiredFields());
|
||||||
|
|
||||||
// Number each page
|
// Number each page
|
||||||
$stepNumber = 1;
|
$stepNumber = 1;
|
||||||
foreach($this->getSteps() as $step) {
|
foreach($this->getSteps() as $step) {
|
||||||
|
Loading…
Reference in New Issue
Block a user