mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-06-13 16:29:06 +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()) {
|
if ($values instanceof DataObject && $values->exists()) {
|
||||||
return [$values->getField($this->getTitleField())];
|
return [$values->{$this->getTitleField()}];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_int($values)) {
|
if (is_int($values)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user