From 33f2431b18983b6c13f1bcb592b6be9a74ed5cfa Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 15 Dec 2020 12:19:50 +0300 Subject: [PATCH] [SSE] Fix Bug 48017 --- .../main/app/view/DataValidationDialog.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js b/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js index 22a137d16..bbda544e7 100644 --- a/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js +++ b/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js @@ -363,6 +363,8 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ onStyleSelect: function(combo, record) { this.errorIcon.removeClass("error warn info"); this.errorIcon.addClass(record.clsText); + if (!this._noApply) + this.props.asc_setErrorStyle(record.value); }, onIgnoreChange: function(field, newValue, oldValue, eOpts) { @@ -424,7 +426,11 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ this.textareaError.setValue(props.asc_getError() || ''); value = props.asc_getErrorStyle(); this.cmbStyle.setValue(value!==null ? value : Asc.EDataValidationErrorStyle.Stop); - + var rec = this.cmbStyle.getSelectedRecord(); + if (rec) { + this.errorIcon.removeClass("error warn info"); + this.errorIcon.addClass(rec.clsText); + } } this.ShowHideElem(); this._noApply = false;