From 447e2031744e0b80ec134df7ba2ffb673388b20e Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 14 Oct 2022 13:54:25 +0300 Subject: [PATCH] For Bug 59377 --- apps/documenteditor/main/app/view/FormSettings.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/main/app/view/FormSettings.js b/apps/documenteditor/main/app/view/FormSettings.js index 29209b27f..02b49d13a 100644 --- a/apps/documenteditor/main/app/view/FormSettings.js +++ b/apps/documenteditor/main/app/view/FormSettings.js @@ -1069,14 +1069,10 @@ define([ if (formPr) { this._originalFormProps = formPr; - var data = []; - if (type == Asc.c_oAscContentControlSpecificType.CheckBox) - data = this.api.asc_GetCheckBoxFormKeys(); - else if (type == Asc.c_oAscContentControlSpecificType.Picture) { - data = this.api.asc_GetPictureFormKeys(); + if (type == Asc.c_oAscContentControlSpecificType.Picture) this.labelFormName.text(this.textImage); - } else - data = this.api.asc_GetTextFormKeys(); + + var data = this.api.asc_GetFormKeysByType(type); if (!this._state.arrKey || this._state.arrKey.length!==data.length || _.difference(this._state.arrKey, data).length>0) { var arr = []; data.forEach(function(item) {