mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
FIX: getValidator not being applied to instance
This commit is contained in:
parent
7730d807a5
commit
f04a6026e6
@ -141,6 +141,9 @@ abstract class MultiForm extends Form
|
|||||||
// Set up the actions for the current step
|
// Set up the actions for the current step
|
||||||
$actions = $this->actionsFor($currentStep);
|
$actions = $this->actionsFor($currentStep);
|
||||||
|
|
||||||
|
// Give the fields, actions, and validation for the current step back to the parent Form class
|
||||||
|
parent::__construct($controller, $name, $fields, $actions);
|
||||||
|
|
||||||
// Set up validation (if necessary)
|
// Set up validation (if necessary)
|
||||||
$validator = null;
|
$validator = null;
|
||||||
$applyValidation = true;
|
$applyValidation = true;
|
||||||
@ -163,9 +166,6 @@ abstract class MultiForm extends Form
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Give the fields, actions, and validation for the current step back to the parent Form class
|
|
||||||
parent::__construct($controller, $name, $fields, $actions);
|
|
||||||
|
|
||||||
$getVar = $this->getGetVar();
|
$getVar = $this->getGetVar();
|
||||||
|
|
||||||
// Set a hidden field in our form with an encrypted hash to identify this session.
|
// Set a hidden field in our form with an encrypted hash to identify this session.
|
||||||
|
Loading…
Reference in New Issue
Block a user