From a9ea2456f01a2511dcc75dcdc76e85cce527f858 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Sat, 23 Jan 2021 17:24:02 +0300 Subject: [PATCH] [DE] Form settings: fix updating keys --- apps/documenteditor/main/app/view/FormSettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/FormSettings.js b/apps/documenteditor/main/app/view/FormSettings.js index e898f7345..562e01f93 100644 --- a/apps/documenteditor/main/app/view/FormSettings.js +++ b/apps/documenteditor/main/app/view/FormSettings.js @@ -662,7 +662,7 @@ define([ this.labelFormName.text(this.textImage); } else data = this.api.asc_GetTextFormKeys(); - if (!this._state.arrKey || _.difference(this._state.arrKey, data).length>0 || this.forceUpdate) { + if (!this._state.arrKey || this._state.arrKey.length!==data.length || _.difference(this._state.arrKey, data).length>0 || this.forceUpdate) { var arr = []; data.forEach(function(item) { arr.push({ displayValue: item, value: item }); @@ -694,7 +694,7 @@ define([ var ischeckbox = (typeof val !== 'string'); if (!ischeckbox) { data = this.api.asc_GetRadioButtonGroupKeys(); - if (!this._state.arrGroupKey || _.difference(this._state.arrGroupKey, data).length>0 || this.forceUpdate) { + if (!this._state.arrGroupKey || this._state.arrGroupKey.length!==data.length || _.difference(this._state.arrGroupKey, data).length>0 || this.forceUpdate) { var arr = []; data.forEach(function(item) { arr.push({ displayValue: item, value: item });