mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
fix: Fall back to the ID
if no title is given
This commit is contained in:
parent
560a1398ab
commit
8da9f83cde
@ -403,7 +403,7 @@ class TagField extends MultiSelectField
|
||||
}
|
||||
|
||||
if ($values instanceof DataObject && $values->exists()) {
|
||||
return [$values->{$this->getTitleField()}];
|
||||
return [$values->{$this->getTitleField()} ?? $values->ID];
|
||||
}
|
||||
|
||||
if (is_int($values)) {
|
||||
|
Loading…
Reference in New Issue
Block a user