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