B2022-064: Print with less than symbol in Unit Specific RO value in table causes empty table to print

This commit is contained in:
Kathy Ruffing 2022-06-08 14:42:49 +00:00
parent e5cba62b95
commit f55ed7f3ef

View File

@ -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 '&lt;', '<' 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("<", "&lt;");
if (newvalue.Contains(">")) newvalue = newvalue.Replace(">", "&gt;");
if (gg != newvalue)
{