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) {