FIX: getValidator not being applied to instance

This commit is contained in:
Will Rossiter 2017-10-01 12:49:22 +13:00
parent 7730d807a5
commit f04a6026e6
1 changed files with 3 additions and 3 deletions

View File

@ -141,6 +141,9 @@ abstract class MultiForm extends Form
// Set up the actions for the current step
$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)
$validator = null;
$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();
// Set a hidden field in our form with an encrypted hash to identify this session.