From fddcb8d13fd0ad1744c3436c58db8358033e1ae4 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 27 Jan 2017 12:33:49 +0000 Subject: [PATCH] =?UTF-8?q?B2017-015:=20RoEditor=20=E2=80=93=20Incorrect?= =?UTF-8?q?=20Menu=20Items/Edit=20fields=20for=20groups/subgroups?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs b/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs index 43361914..5421addc 100644 --- a/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs +++ b/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs @@ -902,9 +902,12 @@ namespace ROEditor return; } } - else + else { - myschema = myrodb.RODB_GetGroupSchema(curelem); + // B2017-015: if editing a group/subgroup, use the parent's schema to get the fields to edit for the menuing. + VlnXmlElement sch = curelem; + if (curelem.ParentNode.Name != "RO_Root") sch = (VlnXmlElement) sch.ParentNode; + myschema = myrodb.RODB_GetGroupSchema(sch); if (myschema==null) { MessageBox.Show("Subgroup Definition does not exist, check Subgroup Definition under Properties for the Group that contains this Subgroup.");