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:
@@ -4850,17 +4850,18 @@ namespace VEPROMS.CSLA.Library
|
||||
ProcedureInfo tmp = DataPortal.Fetch<ProcedureInfo>(new ItemAndChildrenByUnitCriteria(args.ProcID, 0, args.UnitID));
|
||||
if (tmp.MyDocVersion != null)
|
||||
{
|
||||
if (tmp.MyDocVersion.VersionID == args.MyDocVersion.VersionID)
|
||||
{
|
||||
(tmp.MyConfig as ProcedureConfig).SelectedSlave = args.UnitID;
|
||||
ItemInfo.SetParentSectionAndDocVersion(tmp, args.MyDocVersion, null, tmp, args.MyDocVersion);
|
||||
}
|
||||
else
|
||||
{
|
||||
//if (tmp.MyDocVersion.VersionID == args.MyDocVersion.VersionID)
|
||||
//{
|
||||
// args.MyDocVersion.DocVersionConfig.SelectedSlave = args.UnitID;
|
||||
// (tmp.MyConfig as ProcedureConfig).SelectedSlave = args.UnitID;
|
||||
// ItemInfo.SetParentSectionAndDocVersion(tmp, args.MyDocVersion, null, tmp, args.MyDocVersion);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
tmp.MyDocVersion.DocVersionConfig.SelectedSlave = args.UnitID;
|
||||
(tmp.MyConfig as ProcedureConfig).SelectedSlave = args.UnitID;
|
||||
ItemInfo.SetParentSectionAndDocVersion(tmp, tmp.MyDocVersion, null, tmp, tmp.MyDocVersion);
|
||||
}
|
||||
//}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user