From dc03694eff7647526a0c9ac925e47ee00a65f3a5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 20 Aug 2024 16:48:52 +0300 Subject: [PATCH] [SSE] Don't allow plugin to add items to header/footer/series menu --- apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 7c7d41830a..398128cc6f 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -4618,7 +4618,8 @@ define([ }, onPluginContextMenu: function(data) { - if (data && data.length>0 && this.documentHolder && this.currentMenu && this.currentMenu.isVisible()){ + if (data && data.length>0 && this.documentHolder && this.currentMenu && (this.currentMenu !== this.documentHolder.copyPasteMenu) && + (this.currentMenu !== this.documentHolder.fillMenu) && this.currentMenu.isVisible()){ this.documentHolder.updateCustomItems(this.currentMenu, data); } },