diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs index 6f6285f0..ed05adc8 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs @@ -1057,6 +1057,7 @@ namespace VEPROMS.CSLA.Library } } // now do insert, i.e. in new list, but not in old. + bool processedRO = false; foreach (displayTextElement dte in DisplayTextElementList) { bool found = false; @@ -1093,6 +1094,7 @@ namespace VEPROMS.CSLA.Library } l_dte.Link = l_dte.Link.Replace("", string.Format("", rousg.ROUsageID)); l_dte.TextAndLink = l_dte.TextAndLink.Replace("", string.Format("", rousg.ROUsageID)); + processedRO = true; //break; // this break was causing only the first new ro's 'NewID' to get resolved. (found during fix of B2016-037) } else if (dte.Type == E_TextElementType.TransitionRange || dte.Type == E_TextElementType.Transition) @@ -1143,6 +1145,9 @@ namespace VEPROMS.CSLA.Library } } } + // B2017-204 if we processed a RO we need to refresh the usage count for the content + if (processedRO) + itm.MyItemInfo.MyContent.RefreshContentRoUsages(); } private List GetLinkList(List locDisplayTextElementList) {