From 597108989efa9f92c030a67989e82a9593cedead Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Thu, 21 Jan 2010 00:39:18 +0000 Subject: [PATCH] BUGFIX: getByKey replaced with objectForKey git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97307 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TreeDropdownField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/TreeDropdownField.php b/forms/TreeDropdownField.php index dea06bd13..b4d2247d8 100755 --- a/forms/TreeDropdownField.php +++ b/forms/TreeDropdownField.php @@ -275,7 +275,7 @@ class TreeDropdownField_Readonly extends TreeDropdownField { function Field() { $fieldName = $this->labelField; if($this->value) { - $keyObj = $this->getByKey($this->value); + $keyObj = $this->objectForKey($this->value); $obj = $keyObj ? $keyObj->$fieldName : ''; } else { $obj = null;