From 71d8f0dcb815247fb64d7e12f1e2dc3023c8d921 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 10 May 2022 18:18:18 +0000 Subject: [PATCH] B2022-050 RO values containing a < where causing the parent/child RO value to not be parsed into the correct RO values --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 5f1a2747..6aa270e2 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -336,10 +336,14 @@ namespace VEPROMS.CSLA.Library // B2021-093 Don't look for child RO values if "roval" is null if (roval == null) return null; //string childName = MyDocVersionInfo.DocVersionConfig.Unit_Name; - MatchCollection mm = Regex.Matches(roval, "("); // B2022-020 remove a un-needed question mark that was in the search criteria + // B2022-020 remove a un-needed question mark that was in the search criteria "(" + // B2022-050 change the search string from "(" to "" to handle when RO values have less then sign + MatchCollection mm = Regex.Matches(roval, ""); + // C2022-014 commented write to error log. Keep for debugging purposes. //if (mm.Count == 0) // B2022-020 will now write in error log if there is a problem // _MyLog.WarnFormat("Parent/Child Values not parsable for \r\nItemId={0}\r\nROValue={1} ",MyDocVersionInfo.ItemID,roval); + StringBuilder sb = new StringBuilder(); int lastIndex = 0; // Get selected child Idx