From a01b33e66a1d5d22ad328260d9c64941bd44f80c Mon Sep 17 00:00:00 2001 From: OVSharova Date: Wed, 19 Oct 2022 12:08:29 +0300 Subject: [PATCH] bug 59179 --- apps/spreadsheeteditor/main/app/view/FileMenuPanels.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 1e4c1c106..c59828827 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -893,6 +893,7 @@ define([ if (Common.UI.FeaturesManager.canChange('spellcheck') && this.mode.isEdit) { var arrLang = SSE.getController('Spellcheck').loadLanguages(), + defaultShortName = "en-US", allLangs = arrLang[0], langs = arrLang[1], change = arrLang[2]; @@ -912,6 +913,8 @@ define([ item = this.cmbDictionaryLanguage.store.find(function (model) { return model.get('shortName').indexOf(value) == 0; }); + if(!item) + item = this.cmbDictionaryLanguage.store.findWhere({shortName: defaultShortName}) } this.cmbDictionaryLanguage.setValue(item ? item.get('value') : langs[0].value); value = this.cmbDictionaryLanguage.getValue();