From 6391337a86a6342fcfcfcd3e57d39cb61c7af668 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 5 Apr 2023 10:42:56 -0400 Subject: [PATCH] Fix for lanes that doesn't break the world. --- app/spiffworkflow/DataObject/DataObjectInterceptor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/spiffworkflow/DataObject/DataObjectInterceptor.js b/app/spiffworkflow/DataObject/DataObjectInterceptor.js index 724b2b4..df544bd 100644 --- a/app/spiffworkflow/DataObject/DataObjectInterceptor.js +++ b/app/spiffworkflow/DataObject/DataObjectInterceptor.js @@ -46,11 +46,13 @@ export default class DataObjectInterceptor extends CommandInterceptor { } } else if (is(businessObject, 'bpmn:DataObject')) { // For data objects, only update the flowElements for new data objects, and set the parent so it doesn't get moved. - if (typeof(businessObject.$parent) === 'undefined') { + if (typeof (businessObject.$parent) === 'undefined') { const flowElements = realParent.get('flowElements'); flowElements.push(businessObject); businessObject.$parent = realParent; } + } else { + bpmnUpdater.__proto__.updateSemanticParent.call(bpmnUpdater, businessObject, parentBusinessObject); } };