From 571bab99cdb584a0b4190eaa911e9f8295581832 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 18 Sep 2017 13:41:39 +0300 Subject: [PATCH] [SSE] Fix Bug 35854. --- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index eb0132201..a64a8775c 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -1392,8 +1392,11 @@ define([ shortcuts: { 'command+l,ctrl+l': function(e) { if ( me.editMode && !me._state.multiselect ) { - var formattableinfo = me.api.asc_getCellInfo().asc_getFormatTableInfo(); - if (!formattableinfo) { + var cellinfo = me.api.asc_getCellInfo(), + filterinfo = cellinfo.asc_getAutoFilterInfo(), + formattableinfo = cellinfo.asc_getFormatTableInfo(); + filterinfo = (filterinfo) ? filterinfo.asc_getIsAutoFilter() : null; + if (filterinfo!==null && !formattableinfo) { if (_.isUndefined(me.toolbar.mnuTableTemplatePicker)) me.onApiInitTableTemplates(me.api.asc_getTablePictures(formattableinfo)); var store = me.getCollection('TableTemplates');