B2018-018 When approving a second procedure, the cache had the ActiveSection as an ItemInfo instead of as a SectionInfo

This commit is contained in:
John Jenko 2018-02-02 19:29:21 +00:00
parent beb9698528
commit 7123b2d59e

View File

@ -3438,6 +3438,9 @@ namespace VEPROMS.CSLA.Library
else
_ActiveSection = this;
}
// B2018-018 Approval bug fix. Active section was in cache as an ItemInfo instead of a SectionInfo
if (_ActiveSection != null && !(_ActiveSection is SectionInfo))
_ActiveSection = SectionInfo.Get(_ActiveSection.ItemID);
}
return _ActiveSection.IsSection ? _ActiveSection : null;
}