From 72fed66796e6bb1c52d9f901b1c152c7ef550735 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 23 May 2014 14:51:17 +0000 Subject: [PATCH] Fix for updating And type of transitions when steps/substeps are added or removed --- PROMS/VEPROMS.CSLA.Library/Extension/TransitionExt.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/TransitionExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/TransitionExt.cs index 66771842..e422ec28 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/TransitionExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/TransitionExt.cs @@ -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;