B2018-126 & B2018-133: Issues with library document usages – fixed sql error caused by 10/2/18 update

This commit is contained in:
Kathy Ruffing 2018-10-04 10:42:46 +00:00
parent a45b66fe8c
commit 6e2f4ca31e

View File

@ -789,11 +789,13 @@ namespace VEPROMS.CSLA.Library
else
_LastChanged = Entry.Update(cn, content.ContentID, _DocID, _DTS, _UserID, ref _LastChanged);
MarkOld();
// B2018-126 & B2018-133: Refresh for library document usage change:
// B2018-126 & B2018-133: Refresh for library document usage change (note that original checkin had a null check for
// _MyDocument.DocumentEntries that was causing a sql Distributed Transaction Coordinator error - this was removed
// after original checkin)
if (_MyDocument != null)
{
_MyDocument.Update();
if (_MyDocument.DocumentEntries != null) _MyDocument.Reset_DocumentEntries();
_MyDocument.Reset_DocumentEntries();
}
}
}