fix: Use the title-field for has_one DataObject relations

This commit is contained in:
Roman Schmid 2022-07-04 16:10:02 +02:00
parent bc7bf5265b
commit e34d6e4898

View File

@ -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)) {