Fix for updating And type of transitions when steps/substeps are added or removed

This commit is contained in:
John Jenko 2014-05-23 14:51:17 +00:00
parent 89c7496c57
commit 72fed66796

View File

@ -961,6 +961,15 @@ namespace VEPROMS.CSLA.Library
{
if (rangeAncestors.ContainsKey(next.ItemID))
return rangeAncestors[next.ItemID];
if (next.MyDocVersion.DocVersionConfig.SelectedSlave == 0)
{
while (next.NextItem == null)
{
next = next.ActiveParent as ItemInfo;
if (next == null) throw (new Exception("Cannot find Next Item"));
}
return next.NextItem;
}
while (next.GetNextItem() == null)
{
next = next.ActiveParent as ItemInfo;