Merge pull request #627 from ONLYOFFICE/fix/data-validation

[SSE] Fix data validation
This commit is contained in:
Julia Radzhabova 2020-12-15 13:09:42 +03:00 committed by GitHub
commit 74e32bf403
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -332,11 +332,11 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ
if (!this._noApply) {
if (type==1 || type==3) {
if (!this.props.asc_getFormula1())
this.props.asc_setFormula1(new AscCommonExcel.CDataFormula());
this.props.asc_setFormula1(new Asc.CDataFormula());
this.props.asc_getFormula1().asc_setValue(newValue);
} else if (type==2) {
if (!this.props.asc_getFormula2())
this.props.asc_setFormula2(new AscCommonExcel.CDataFormula());
this.props.asc_setFormula2(new Asc.CDataFormula());
this.props.asc_getFormula2().asc_setValue(newValue);
}
}