From 341a1d3e6a0585748ba47f00037bafc6faa71656 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 29 Aug 2018 15:49:20 +0000 Subject: [PATCH] B2018-118 additional change to fix incorrect ordinal for enhanced tab if no related source caution/note found --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index 7ab0d9c3..de92f462 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -3766,7 +3766,7 @@ namespace VEPROMS.CSLA.Library { if (caut.IsCaution && enIsCaution) ord++; if (caut.IsNote && !enIsCaution) ord++; - if (caut.ItemID == srcItem.ItemID) return ord; + if (caut.ItemID == srcItem.ItemID) return ord==0?null:ord; } } if (hls.Notes != null && hls.Notes.Count > 0) @@ -3775,7 +3775,7 @@ namespace VEPROMS.CSLA.Library { if (note.IsCaution && enIsCaution) ord++; if (note.IsNote && !enIsCaution) ord++; - if (note.ItemID == srcItem.ItemID) return ord; + if (note.ItemID == srcItem.ItemID) return ord==0?null:ord; } } }