[SSE] Fix Bug 33373

This commit is contained in:
Julia Radzhabova 2021-03-22 18:46:36 +03:00
parent af181a55b2
commit 807a96bef2

View file

@ -173,14 +173,19 @@ define([
if (this._state.ChartStyle!==value || this._isChartStylesChanged) {
this.cmbChartStyle.suspendEvents();
var rec = this.cmbChartStyle.menuPicker.store.findWhere({data: value});
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;
}