diff --git a/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs b/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs index b5f85ad4..03ca6a3e 100644 --- a/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs +++ b/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs @@ -1858,7 +1858,8 @@ namespace RODBInterface XmlNode ro; try { - if (Info != null) Info = Info.Replace("&apos", "\'"); // B2021-071: crash when getting/saving field names + //B2022-043 &pos; was missing the ; + if (Info != null) Info = Info.Replace("'", "\'"); // B2021-071: crash when getting/saving field names XmlTextReader roreader = new XmlTextReader(Info, XmlNodeType.Element, null); ro = ROXml.ReadNode(roreader); } @@ -1906,7 +1907,8 @@ namespace RODBInterface MyRecID = RecID; string AccPageID = DBE.GetString(2); string Info = DBE.GetString(3); - Info = Info.Replace("&apos", "\'"); // B2021-071: crash when getting/saving field names + //B2022-043 &pos; was missing the ; + Info = Info.Replace("'", "\'"); // B2021-071: crash when getting/saving field names node.SetAttribute("HasChild", "True"); // Store data in the VlnXmlElement as a subgroup