mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fixed issue that would cause the wrong field to be extracted when using "detailed" updates in o2m with non-"id" primary keys (#6841)
Fixes #6817
This commit is contained in:
@@ -543,7 +543,7 @@ export class PayloadService {
|
||||
}
|
||||
|
||||
if (alterations.update) {
|
||||
const primaryKeyField = this.schema.collections[this.collection].primary;
|
||||
const primaryKeyField = this.schema.collections[relation.collection].primary;
|
||||
|
||||
for (const item of alterations.update) {
|
||||
await itemsService.updateOne(
|
||||
|
||||
Reference in New Issue
Block a user