From 96971e984e3abea8186cff1724dbdca9b1e15a3d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 10 Dec 2020 18:17:38 +0300 Subject: [PATCH] [SSE] Fix select data for validation --- apps/spreadsheeteditor/main/app/view/CellRangeDialog.js | 2 ++ apps/spreadsheeteditor/main/app/view/DataValidationDialog.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js b/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js index 8bc2fa066f..d3a03020d8 100644 --- a/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js +++ b/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js @@ -168,6 +168,8 @@ define([ this.settings.argvalues[this.settings.argindex] = val; this.api.asc_insertArgumentsInFormula(this.settings.argvalues); + } else if (this.settings.type == Asc.c_oAscSelectionDialogType.DataValidation) { + this.inputRange.setValue('=' + name); } else this.inputRange.setValue(name); if (this.inputRange.cmpEl.hasClass('error')) diff --git a/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js b/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js index 975c5abe1d..8cf8100fb2 100644 --- a/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js +++ b/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js @@ -321,7 +321,7 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ win.setSettings({ api : me.api, range : input.getValue(), - type : Asc.c_oAscSelectionDialogType.Chart, + type : Asc.c_oAscSelectionDialogType.DataValidation, validation: function() {return true;} }); }