From 0b2091b5d2a579446fa1aa6ceac76bbd2497c306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Rosenstr=C3=B6m?= Date: Tue, 5 Nov 2024 10:16:21 +0100 Subject: [PATCH] fix(cataloging-bulkchanges): append ids to targetForm when is create specification --- cataloging/src/components/care/bulk-changes.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cataloging/src/components/care/bulk-changes.vue b/cataloging/src/components/care/bulk-changes.vue index e82345f56..8c189fcef 100644 --- a/cataloging/src/components/care/bulk-changes.vue +++ b/cataloging/src/components/care/bulk-changes.vue @@ -304,7 +304,11 @@ export default { if (this.activeStep === 'form') { this.setInspectorData(this.currentSpec[MATCH_FORM_KEY]); } - this.currentSpec[TARGET_FORM_KEY] = cloneDeep(this.inspector.data.mainEntity); + if (this.isCreateSpec) { + this.currentSpec[TARGET_FORM_KEY] = DataUtil.appendIds(cloneDeep(this.inspector.data.mainEntity)); + } else { + this.currentSpec[TARGET_FORM_KEY] = cloneDeep(this.inspector.data.mainEntity); + } }, reset() { this.$store.dispatch('setInspectorStatusValue', {