From 4c1bbbbc3529ee9af15275f884c44616e37d8325 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 1 Dec 2021 22:02:10 +0000 Subject: [PATCH] =?UTF-8?q?B2021-141=20=E2=80=93=20Printing=20a=20procedur?= =?UTF-8?q?e=20for=20the=20last=20child=20(unit)=20was=20causing=20PROMS?= =?UTF-8?q?=20to=20crash=20when=20processing=20multiple=20ROs=20that=20hav?= =?UTF-8?q?e=20Parent/Child=20values.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 05312cb6..ebeadcb3 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -324,7 +324,8 @@ namespace VEPROMS.CSLA.Library { idx = aplString.IndexOf("Value=", idx) + 6; int idxEndVal = aplString.IndexOf(",UnitIdx=", idx); // look for more than just a comma incase value contains a comma - if (idxEndVal == -1) idxEndVal = EndCVidx; // if last child value is up to " /APL>" + if (idxEndVal == -1)// if last child value is up to " /APL>" + idxEndVal = aplString.IndexOf(" /APL>", idx); // B2021-141 get end of Parent/Child RO Values for this RO reference if (idxEndVal > idx) ChldValue = aplString.Substring(idx, idxEndVal - idx); // selected Child RO value else