diff --git a/workflow/engine/templates/bpmn/designer.js b/workflow/engine/templates/bpmn/designer.js index ebd216ec0..d199a8672 100755 --- a/workflow/engine/templates/bpmn/designer.js +++ b/workflow/engine/templates/bpmn/designer.js @@ -911,6 +911,7 @@ SelectionListener1 = function(_43b1){ SelectionListener1.prototype.type = "SelectionListener1"; SelectionListener1.prototype.onSelectionChanged = function(_43b2) { + if( this.workflow.currentSelection ) if (this.lastSelectedItem !== this.workflow.currentSelection.id ) { if( this.workflow.currentSelection.type == 'bpmnTask' || this.workflow.currentSelection.type == 'bpmnSubProcess' ) { this.lastSelectedItem = this.workflow.currentSelection.id;