B2018-118 additional change to fix incorrect ordinal for enhanced tab if no related source caution/note found

This commit is contained in:
Kathy Ruffing 2018-08-29 15:49:20 +00:00
parent e868ce2e9e
commit 341a1d3e6a

View File

@ -3766,7 +3766,7 @@ namespace VEPROMS.CSLA.Library
{ {
if (caut.IsCaution && enIsCaution) ord++; if (caut.IsCaution && enIsCaution) ord++;
if (caut.IsNote && !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) if (hls.Notes != null && hls.Notes.Count > 0)
@ -3775,7 +3775,7 @@ namespace VEPROMS.CSLA.Library
{ {
if (note.IsCaution && enIsCaution) ord++; if (note.IsCaution && enIsCaution) ord++;
if (note.IsNote && !enIsCaution) ord++; if (note.IsNote && !enIsCaution) ord++;
if (note.ItemID == srcItem.ItemID) return ord; if (note.ItemID == srcItem.ItemID) return ord==0?null:ord;
} }
} }
} }