B2017-015: RoEditor – Incorrect Menu Items/Edit fields for groups/subgroups

This commit is contained in:
Kathy Ruffing 2017-01-27 12:33:49 +00:00
parent 125f3b1b43
commit fddcb8d13f

View File

@ -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.");