B2017-019 Don’t cook applicability ROs (ex <u>) when displaying for editing

B2017-019 handle <u> in DisplayNumber
This commit is contained in:
2017-01-30 19:44:25 +00:00
parent 8defa23e65
commit 13ade8e0b7
2 changed files with 2 additions and 3 deletions

View File

@@ -291,7 +291,7 @@ namespace VEPROMS.CSLA.Library
text = DoReplaceWords2(text);
ProfileTimer.Pop(profileDepth1);
}
if (_MyItemInfo != null)
if (_MyItemInfo != null && ROsShouldBeAdjusted) // B2017-019 - added check for ROsShouldBeAdjusted so that these token are not "cooked" on property pages
{
text = Regex.Replace(text, @"\<U\>", _MyItemInfo.MyDocVersion.DocVersionConfig.Unit_Number, RegexOptions.IgnoreCase);
text = Regex.Replace(text, @"\<(U(-|\\u8209\?)ID)\>", _MyItemInfo.MyDocVersion.DocVersionConfig.Unit_ID, RegexOptions.IgnoreCase);