From 9816df153893a540981789199cfe7acfeec0119c Mon Sep 17 00:00:00 2001 From: ajshort Date: Sat, 5 Feb 2011 21:50:17 +1100 Subject: [PATCH] ENHANCEMENT: Manually set the form controller and name in MultiForm::__construct() so they are available for field construction. --- code/MultiForm.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/MultiForm.php b/code/MultiForm.php index 83b261b..986ccf4 100644 --- a/code/MultiForm.php +++ b/code/MultiForm.php @@ -86,7 +86,12 @@ abstract class MultiForm extends Form { if(isset($_GET['MultiFormSessionID'])) { $this->setCurrentSessionHash($_GET['MultiFormSessionID']); } - + + // First set the controller and name manually so they are available for + // field construction. + $this->controller = $controller; + $this->name = $name; + // Set up the session for this MultiForm instance $this->setSession();