From 807a96bef20e771691eeab0f2355af80e0221fa4 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 22 Mar 2021 18:46:36 +0300 Subject: [PATCH] [SSE] Fix Bug 33373 --- apps/spreadsheeteditor/main/app/view/ChartSettings.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettings.js b/apps/spreadsheeteditor/main/app/view/ChartSettings.js index 7757c489d..3ca5d4ed0 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettings.js @@ -173,14 +173,19 @@ define([ if (this._state.ChartStyle!==value || this._isChartStylesChanged) { this.cmbChartStyle.suspendEvents(); var rec = this.cmbChartStyle.menuPicker.store.findWhere({data: value}); - this.cmbChartStyle.menuPicker.selectRecord(rec); + if (rec) + this.cmbChartStyle.menuPicker.selectRecord(rec); + else { + this.cmbChartStyle.fieldPicker.deselectAll(); + this.cmbChartStyle.menuPicker.deselectAll(); + } this.cmbChartStyle.resumeEvents(); if (this._isChartStylesChanged) { if (rec) this.cmbChartStyle.fillComboView(this.cmbChartStyle.menuPicker.getSelectedRec(),true); else - this.cmbChartStyle.fillComboView(this.cmbChartStyle.menuPicker.store.at(0), true); + this.cmbChartStyle.fillComboView(this.cmbChartStyle.menuPicker.store.at(0), false); } this._state.ChartStyle=value; }