mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed setForm() invocation in Form::__construct() (see #4558, thanks ajshort) (from r97483)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102498 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
051878c6a4
commit
08b00bd5f4
@ -144,8 +144,8 @@ class Form extends RequestHandler {
|
||||
function __construct($controller, $name, FieldSet $fields, FieldSet $actions, $validator = null) {
|
||||
parent::__construct();
|
||||
|
||||
foreach($fields as $field) $field->setForm($this);
|
||||
foreach($actions as $action) $actions->setForm($this);
|
||||
$fields->setForm($this);
|
||||
$actions->setForm($this);
|
||||
|
||||
$this->fields = $fields;
|
||||
$this->actions = $actions;
|
||||
|
Loading…
x
Reference in New Issue
Block a user