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:
Ingo Schommer 2010-04-12 21:19:38 +00:00
parent 051878c6a4
commit 08b00bd5f4

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;