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');