From 80fb58cd269713597b3089ce76ccd7e93eda7202 Mon Sep 17 00:00:00 2001 From: Alexei Koshelev Date: Wed, 14 Dec 2022 23:30:08 +0300 Subject: [PATCH] [DE] Locking paragraph options for a form (bug 59062) --- .../main/app/controller/RightMenu.js | 11 ++++++--- .../main/app/controller/Toolbar.js | 23 +++++++++++++++++-- .../main/app/view/DocumentHolder.js | 2 +- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/apps/documenteditor/main/app/controller/RightMenu.js b/apps/documenteditor/main/app/controller/RightMenu.js index 1261c0156..c0a192642 100644 --- a/apps/documenteditor/main/app/controller/RightMenu.js +++ b/apps/documenteditor/main/app/controller/RightMenu.js @@ -171,6 +171,7 @@ define([ isProtected = this._state.docProtection.isReadOnly || this._state.docProtection.isFormsOnly || this._state.docProtection.isCommentsOnly; var control_props = this.api.asc_IsContentControl() ? this.api.asc_GetContentControlProperties() : null, + is_form = control_props && control_props.get_FormPr(), control_lock = false; for (i=0; i