From 77165473ecc5e3bcd22ecade141fdd0b28b280eb Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 2 Dec 2022 17:30:22 +0300 Subject: [PATCH] [DE] Send role name for fill form preview --- apps/documenteditor/main/app/controller/FormsTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/FormsTab.js b/apps/documenteditor/main/app/controller/FormsTab.js index 63287cf5b..8a4c8084d 100644 --- a/apps/documenteditor/main/app/controller/FormsTab.js +++ b/apps/documenteditor/main/app/controller/FormsTab.js @@ -224,7 +224,7 @@ define([ if (this.api) { this.disableEditing(state); this.view && this.view.setPreviewMode(state); // send role name - lastViewRole - this.api.asc_setRestriction(state ? Asc.c_oAscRestrictionType.OnlyForms : Asc.c_oAscRestrictionType.None); + this.api.asc_setRestriction(state ? Asc.c_oAscRestrictionType.OnlyForms : Asc.c_oAscRestrictionType.None, lastViewRole); this.api.asc_SetPerformContentControlActionByClick(state); this.api.asc_SetHighlightRequiredFields(state); state && (this._state.lastViewRole = lastViewRole);