B2022-050 RO values containing a < where causing the parent/child RO value to not be parsed into the correct RO values
This commit is contained in:
parent
9861a43e5b
commit
71d8f0dcb8
@ -336,10 +336,14 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// B2021-093 Don't look for child RO values if "roval" is null
|
// B2021-093 Don't look for child RO values if "roval" is null
|
||||||
if (roval == null) return null;
|
if (roval == null) return null;
|
||||||
//string childName = MyDocVersionInfo.DocVersionConfig.Unit_Name;
|
//string childName = MyDocVersionInfo.DocVersionConfig.Unit_Name;
|
||||||
MatchCollection mm = Regex.Matches(roval, "(<APL [^<]+) /APL>"); // 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 "(<APL [^<]+) /APL>"
|
||||||
|
// B2022-050 change the search string from "(<APL [^<]+) /APL>" to "<APL .*? /APL>" to handle when RO values have less then sign
|
||||||
|
MatchCollection mm = Regex.Matches(roval, "<APL .*? /APL>");
|
||||||
|
|
||||||
// C2022-014 commented write to error log. Keep for debugging purposes.
|
// 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
|
//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 <APL ... /APL>\r\nItemId={0}\r\nROValue={1} ",MyDocVersionInfo.ItemID,roval);
|
// _MyLog.WarnFormat("Parent/Child Values not parsable for <APL ... /APL>\r\nItemId={0}\r\nROValue={1} ",MyDocVersionInfo.ItemID,roval);
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
int lastIndex = 0;
|
int lastIndex = 0;
|
||||||
// Get selected child Idx
|
// Get selected child Idx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user