From d8338c12f68af9b4b178b1089c6f2d3e00dcfb12 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 17 Mar 2017 09:43:35 +0300 Subject: [PATCH] Fix Bug 34366. --- apps/common/main/lib/controller/ExternalDiagramEditor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/common/main/lib/controller/ExternalDiagramEditor.js b/apps/common/main/lib/controller/ExternalDiagramEditor.js index 9bdfe6209..9d9a519d8 100644 --- a/apps/common/main/lib/controller/ExternalDiagramEditor.js +++ b/apps/common/main/lib/controller/ExternalDiagramEditor.js @@ -114,6 +114,7 @@ define([ createExternalEditor.apply(this); } this.isExternalEditorVisible = true; + this.isHandlerCalled = false; }, this), 'hide': _.bind(function(cmp){ if (externalEditor) { @@ -138,6 +139,8 @@ define([ }, handler: function(result, value) { + if (this.isHandlerCalled) return; + this.isHandlerCalled = true; externalEditor && externalEditor.serviceCommand('queryClose',{mr:result}); return true; },