From 077564cd3e675176907f0b6f1d2fcc8ef9774fed Mon Sep 17 00:00:00 2001 From: Kathy Ruffing Date: Tue, 9 Jan 2024 10:43:27 -0500 Subject: [PATCH] B2022-134: update ros crash when ro has '<' or '>' and ro is used in table --- PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs index f19d491a..07e23237 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs @@ -711,6 +711,11 @@ namespace VEPROMS.CSLA.Library else newvalue = newvalue.Replace(@"\u9586?", m.Groups[1].Value + @"\u9586?" + m.Groups[3].Value); } + // B2022-134: crash when updating an RO that contains '<' or '>' when RO is used in a table cell. These + // are xml special characters, the grid is stored as xml, so these characters need translated so that + // storing them as xml in the database won't crash. They get translated back when used in Proms. + if (newvalue.Contains("<")) newvalue = newvalue.Replace("<", "<"); + if (newvalue.Contains(">")) newvalue = newvalue.Replace(">", ">"); if (gg != newvalue) { retval = gg; -- 2.47.2