ENHANCEMENT: Manually set the form controller and name in MultiForm::__construct() so they are available for field construction.

This commit is contained in:
ajshort 2011-02-05 21:50:17 +11:00
parent 5dd19ad41b
commit 9816df1538

View File

@ -87,6 +87,11 @@ abstract class MultiForm extends Form {
$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();