From 1da45dde0e1316318b63de0f04807f711507d70f Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Wed, 30 Apr 2025 12:03:09 +0300 Subject: [PATCH] For bug #71640 Add subforms to a complex form with the role name of the complex form --- api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api.js b/api.js index 9fad3c6..787dc01 100644 --- a/api.js +++ b/api.js @@ -673,6 +673,9 @@ window["AscOForm"] = window.AscOForm = AscOForm; form.SetFormPr(formPr.Copy()); + if (!form.IsMainForm() && form.GetMainForm().GetFormRole() !== formPr.GetRole()) + form.SetFormRole(form.GetMainForm().GetFormRole()); + let docPartId = form.GetPlaceholder(); let glossary = logicDocument.GetGlossaryDocument(); if ((form.IsTextForm()