From 7123b2d59ec4b209967a659fd0fde0b0a868858a Mon Sep 17 00:00:00 2001 From: John Date: Fri, 2 Feb 2018 19:29:21 +0000 Subject: [PATCH] B2018-018 When approving a second procedure, the cache had the ActiveSection as an ItemInfo instead of as a SectionInfo --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index bdd9066d..d0c2c1a2 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -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; }