From 6f862bc68e5ca052d6c9dcc451275cb44e6eb800 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 20 Aug 2020 13:24:48 +0300 Subject: [PATCH] [SSE] Fix Bug 46251 (disable slicer name for several slicers) --- .../spreadsheeteditor/main/app/view/SlicerSettingsAdvanced.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/view/SlicerSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/SlicerSettingsAdvanced.js index f08ccd971..5fd20562f 100644 --- a/apps/spreadsheeteditor/main/app/view/SlicerSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/SlicerSettingsAdvanced.js @@ -458,7 +458,9 @@ define([ 'text!spreadsheeteditor/main/app/template/SlicerSettingsAdvanced.tem this.chShowNoData.setDisabled(checked || (this.chIndNoData.getValue()!='checked')); this.chShowDel.setDisabled(checked); - this.inputName.setValue(slicerprops.asc_getName()); + value = slicerprops.asc_getName(); + this.inputName.setValue(value !== null && value !== undefined ? value : ''); + this.inputName.setDisabled(value === null || value === undefined); this.lblSource.text(slicerprops.asc_getSourceName()); this.lblFormula.text(slicerprops.asc_getNameInFormulas());