B2017-204 reset the RO Usage count which will reset the cached RO information

This commit is contained in:
John Jenko 2017-09-12 13:28:39 +00:00
parent c87ec88245
commit ed47591369

View File

@ -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("<NewID>", string.Format("<CROUSGID={0}>", rousg.ROUsageID));
l_dte.TextAndLink = l_dte.TextAndLink.Replace("<NewID>", string.Format("<CROUSGID={0}>", 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<displayLinkElement> GetLinkList(List<displayTextElement> locDisplayTextElementList)
{