MINOR Fixed setForm() invocation in Form::__construct() (see #4558, thanks ajshort)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97483 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-01-25 08:00:18 +00:00 committed by Sam Minnee
parent 0d79696883
commit b6c797cbeb

View File

@ -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;