mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
fix: Do not use getField
to allow for field fallback values
This commit is contained in:
parent
e34d6e4898
commit
560a1398ab
@ -403,7 +403,7 @@ class TagField extends MultiSelectField
|
||||
}
|
||||
|
||||
if ($values instanceof DataObject && $values->exists()) {
|
||||
return [$values->getField($this->getTitleField())];
|
||||
return [$values->{$this->getTitleField()}];
|
||||
}
|
||||
|
||||
if (is_int($values)) {
|
||||
|
Loading…
Reference in New Issue
Block a user