diff --git a/forms/Form.php b/forms/Form.php index 7c4eb1380..7adb2af8e 100755 --- a/forms/Form.php +++ b/forms/Form.php @@ -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;