From 3870096cf6c1ea3ba7af864747ca8b9c120b3b1e Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 3 Apr 2020 18:36:43 +0300 Subject: [PATCH] [SSE] Bug 44953 --- apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index d635ec0ee..5ea74561b 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -1950,7 +1950,7 @@ define([ } }, - onEntriesListMenu: function(validation, textarr) { + onEntriesListMenu: function(validation, textarr, addarr) { if (textarr && textarr.length>0) { var me = this, documentHolderView = me.documentHolder, @@ -1970,9 +1970,10 @@ define([ _.each(textarr, function(menuItem, index) { var mnu = new Common.UI.MenuItem({ caption : menuItem, + value : addarr ? addarr[index] : menuItem, style: (typeof menuItem == 'string' && _.isEmpty(menuItem.trim())) ? 'min-height: 25px;' : '' }).on('click', function(item, e) { - me.api.asc_insertFormula(item.caption, Asc.c_oAscPopUpSelectorType.None, false ); + me.api.asc_insertFormula(item.value, Asc.c_oAscPopUpSelectorType.None, false ); }); menu.addItem(mnu); });