From a78ffb75328191f151111a6da9e255bbd3a4674b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 13 Apr 2010 02:05:57 +0000 Subject: [PATCH] BUGFIX: Let FieldMap access non-data fields too (from r95825) (from r98095) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102587 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 7adb2af8e..48659b58d 100755 --- a/forms/Form.php +++ b/forms/Form.php @@ -1296,6 +1296,6 @@ class Form_FieldMap extends ViewableData { } function __call($method, $args = null) { - return $this->form->dataFieldByName($method); + return $this->form->Fields()->fieldByName($method); } }