Fixed issue of floating foldouts not printing for a procedure that was copied (Shearon Harris)
This commit is contained in:
parent
367542e10f
commit
018599a9e7
@ -1566,6 +1566,21 @@ namespace VEPROMS.CSLA.Library
|
||||
if (ss != null && ss != "") sectstartid = System.Convert.ToInt32(ss);
|
||||
else return false;
|
||||
if (ItemID == sectstartid) return true;
|
||||
SectionInfo si = SectionInfo.Get(sectstartid);
|
||||
if (si == null) return false;
|
||||
if (si.MyProcedure.ItemID == MyProcedure.ItemID) return false;
|
||||
if (si.DisplayNumber == DisplayNumber && si.DisplayText == DisplayText)
|
||||
{
|
||||
using (Procedure p = Procedure.Get(parent.ItemID))
|
||||
{
|
||||
if (p.ProcedureConfig.SectionStart != ItemID.ToString())
|
||||
{
|
||||
p.ProcedureConfig.SectionStart = ItemID.ToString();
|
||||
p.Save();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user