From 38857b1fcd89ed360954e71e249e331701c7125a Mon Sep 17 00:00:00 2001 From: John Date: Wed, 2 Mar 2022 16:08:15 +0000 Subject: [PATCH] B2022-032 Fixed an index out of range error while building an RO return value that contains Parent/Child enabled RO fields. The code was improperly calculating the next position in the raw RO return value information. --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 2eac4140..78a748fd 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -360,7 +360,7 @@ namespace VEPROMS.CSLA.Library nextIDX = aplString.IndexOf(",UnitIdx", offsetIdx); if (nextIDX == -1) nextIDX = aplString.IndexOf(" /APL>"); sb.Append(aplString.Substring(offsetIdx, nextIDX - offsetIdx)); - lastIndex += m.Index + m.Length; + lastIndex = m.Index + m.Length; // B2022-032 don't do a += of lastIndex the m.Index is the true position in the roval string } if (lastIndex < roval.Length) sb.Append(roval.Substring(lastIndex)); // B2022-018 append any remaining text