diff --git a/src/Forms/MultiForm.php b/src/Forms/MultiForm.php index 75e5ee2..f7eb628 100644 --- a/src/Forms/MultiForm.php +++ b/src/Forms/MultiForm.php @@ -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.