mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
ed5c173366
commit
597108989e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user