Assure that the selected slave is set when looking up transition destinations.
Added logic to properly find a procedure title when the first applicable step is not the first step.
This commit is contained in:
@@ -699,8 +699,15 @@ namespace VEPROMS.CSLA.Library
|
||||
// if can't find procedure, just put in a question mark.
|
||||
if (tb._ToItem.PreviousID == null && tb._ToItem.ItemPartCount == 0 && tb._ToItem.ItemDocVersionCount == 0)
|
||||
{
|
||||
tb.Append("?");
|
||||
return true; // (tb.TextAdded = true);
|
||||
if (tb._ToItem.ActiveParent is ItemInfo && (tb._ToItem.ActiveParent as ItemInfo).Steps[0].ItemID == tb._ToItem.ItemID)
|
||||
{
|
||||
// If the transition is to the first applicable step, then use the location rather than outputting a question mark.
|
||||
}
|
||||
else
|
||||
{
|
||||
tb.Append("?");
|
||||
return true; // (tb.TextAdded = true);
|
||||
}
|
||||
}
|
||||
string parenstr = tb._ToItem.MyProcedure.MyContent.Text;
|
||||
parenstr = parenstr.Replace("\\LINE ", " ").Replace("\r\n", " ");
|
||||
|
Reference in New Issue
Block a user