diff --git a/.changeset/short-socks-sort.md b/.changeset/short-socks-sort.md new file mode 100644 index 0000000000000..7277e85cf6967 --- /dev/null +++ b/.changeset/short-socks-sort.md @@ -0,0 +1,5 @@ +--- +'@directus/api': patch +--- + +Enabled updates of O2M entities via filter hook on parent level, ensured the payload of update action event reflects the actual updated value diff --git a/api/src/services/items.ts b/api/src/services/items.ts index 3555b886e989f..844fce3c70c00 100644 --- a/api/src/services/items.ts +++ b/api/src/services/items.ts @@ -685,7 +685,7 @@ export class ItemsService implements AbstractSer for (const key of keys) { const { revisions, nestedActionEvents: nestedActionEventsO2M } = await payloadService.processO2M( - payload, + payloadWithA2O, key, opts, ); @@ -774,7 +774,7 @@ export class ItemsService implements AbstractSer ? ['items.update', `${this.collection}.items.update`] : `${this.eventScope}.update`, meta: { - payload, + payload: payloadWithPresets, keys, collection: this.collection, },