look at "title" field instead of "titles"

This commit is contained in:
Laura Klünder 2024-12-05 17:20:20 +01:00
parent 16ebe2882d
commit 1c33db4c79

View file

@ -237,7 +237,7 @@ class ChangedObjectCollection(BaseSchema):
if changed_object is None:
# todo: titles should be better, probably
titles = (
operation.fields.get("titles", {})
operation.fields.get("title", {})
if isinstance(operation, CreateObjectOperation)
else self.prev.get(operation.obj).titles
)