mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
ENHANCEMENT: Manually set the form controller and name in MultiForm::__construct() so they are available for field construction.
This commit is contained in:
parent
5dd19ad41b
commit
9816df1538
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user