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