Merge pull request #655 from ONLYOFFICE/fix/bugfix

[SSE] Fix data validation
This commit is contained in:
Julia Radzhabova 2021-01-18 12:30:03 +03:00 committed by GitHub
commit 845e2a6b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,7 +370,7 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ
onIgnoreChange: function(field, newValue, oldValue, eOpts) { onIgnoreChange: function(field, newValue, oldValue, eOpts) {
if (!this._noApply) { if (!this._noApply) {
this.props.asc_setAllowBlank(field.getValue()!=='checked'); this.props.asc_setAllowBlank(field.getValue()=='checked');
} }
}, },
@ -411,7 +411,7 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ
this._noApply = true; this._noApply = true;
if (props) { if (props) {
var value = props.asc_getAllowBlank(); var value = props.asc_getAllowBlank();
this.chIgnore.setValue(!value, true); this.chIgnore.setValue(value, true);
value = props.asc_getShowDropDown(); value = props.asc_getShowDropDown();
this.chShowDropDown.setValue(!value, true); this.chShowDropDown.setValue(!value, true);
value = props.asc_getType(); value = props.asc_getType();