Refresh DocVersionInfo objects after the first procedure in a set is deleted. B2012-277
This commit is contained in:
parent
7f752dfbd3
commit
f63b9d3ace
@ -929,11 +929,15 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
ItemInfo nextItem = item.NextItem;
|
||||
ItemInfo prevItem = item.MyPrevious;
|
||||
DocVersionInfo docVersion = item.ItemDocVersionCount == 1 ? item.ItemDocVersions[0] : null;
|
||||
item.OnBeforeDelete();
|
||||
//_MyTimer.ActiveProcess = "DataPortal.Delete";
|
||||
DataPortal.Delete(new DeleteCriteria(item.ItemID, Volian.Base.Library.VlnSettings.UserID));
|
||||
if (nextItem != null) // Adjust PreviousID for NextItem
|
||||
{
|
||||
if (docVersion != null)
|
||||
using (DocVersion dv = docVersion.Get())
|
||||
DocVersionInfo.Refresh(dv);
|
||||
//_MyTimer.ActiveProcess = "RefreshPrevious";
|
||||
ItemInfo.RefreshPrevious(nextItem.ItemID, item.PreviousID);
|
||||
// The order of the next two methods was required to fix a null reference
|
||||
|
Loading…
x
Reference in New Issue
Block a user