From f55ed7f3ef43d6fba12d9d2a069abfcc9bbc9826 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 8 Jun 2022 14:42:49 +0000 Subject: [PATCH] B2022-064: Print with less than symbol in Unit Specific RO value in table causes empty table to print --- PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs index bceb68ad..8ce04653 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs @@ -1077,6 +1077,12 @@ namespace VEPROMS.CSLA.Library else newvalue = newvalue.Replace(@"\u9586?", m.Groups[1].Value + @"\u9586?" + m.Groups[3].Value); } + // B2022-064: Translate '<' to '<', '<' is xml token, so xml grid string was incorrect for print. + // Note that the '>' symbol was also translated. This method does NOT save the string to database, + // it is used for setting grid data xml string before printing. This method resolves symbols + // (above - not bug fix) and untit specific ROs (this bug fix): + if (newvalue.Contains("<")) newvalue = newvalue.Replace("<", "<"); + if (newvalue.Contains(">")) newvalue = newvalue.Replace(">", ">"); if (gg != newvalue) {