Bug fix B2012-297 ProcedureTree not updated when deleting new copied procedure

This commit is contained in:
John Jenko 2012-11-09 20:40:47 +00:00
parent 1bdf8af02d
commit 6423e592cc

View File

@ -394,6 +394,7 @@ namespace VEPROMS.CSLA.Library
else
tmp = DataPortal.Fetch<StepInfo>(new PastingPartCriteria(copyStartID, itemID, addType, type, fromType, DateTime.Now, Volian.Base.Library.VlnSettings.UserID));
}
AddToCache(tmp);
return tmp;
}
@ -455,6 +456,7 @@ namespace VEPROMS.CSLA.Library
else
tmp = DataPortal.Fetch<StepInfo>(new AddingPartCriteria(itemID, addType, number, text, type, fromType, formatID, config, dts, userID));
}
AddToCache(tmp);
return tmp;
}
public void UpdateTransitionText()
@ -1116,7 +1118,6 @@ namespace VEPROMS.CSLA.Library
tmp = DataPortal.Fetch<SectionInfo>(new ItemInfo.PastingPartCriteria(copyStartID, itemInfo.ItemID, ItemInfo.EAddpingPart.Replace, itemInfo.MyContent.Type, itemInfo.MyContent.Type, DateTime.Now, Volian.Base.Library.VlnSettings.UserID));
else
tmp = DataPortal.Fetch<StepInfo>(new ItemInfo.PastingPartCriteria(copyStartID, itemInfo.ItemID, ItemInfo.EAddpingPart.Replace, itemInfo.MyContent.Type, itemInfo.MyContent.Type, DateTime.Now, Volian.Base.Library.VlnSettings.UserID));
return tmp;
}
#endregion