From 3f8591a8076707116bdc5e2f0da6f53d50c46f8c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 26 May 2008 23:53:24 +0000 Subject: [PATCH] BUGFIX call to $field->Name should be $field->Name() - see Form->Fields() for the correct way git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@55161 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/Form.php b/forms/Form.php index c215305a4..85f199be6 100644 --- a/forms/Form.php +++ b/forms/Form.php @@ -259,7 +259,7 @@ class Form extends ViewableData { */ function dataFieldByName($name) { foreach($this->getExtraFields() as $field) { - if(!$this->fields->dataFieldByName($field->Name)) $this->fields->push($field); + if(!$this->fields->dataFieldByName($field->Name())) $this->fields->push($field); } return $this->fields->dataFieldByName($name);