From d2e310a773d239ba4595bb599969303f7a1a6f12 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 12 Apr 2010 05:01:09 +0000 Subject: [PATCH] BUGFIX: getByKey replaced with objectForKey (from r97307) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102442 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 895b26528..15f7b694e 100755 --- a/forms/TreeDropdownField.php +++ b/forms/TreeDropdownField.php @@ -277,7 +277,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;