From 9861a43e5bbde5fee5e99898fc4161eed9aee6fc Mon Sep 17 00:00:00 2001 From: John Date: Tue, 10 May 2022 18:17:45 +0000 Subject: [PATCH] B2022-051 The list of RO values when inserting a RO, would sometimes have applicability token text (\APL>) listed with the possible RO values --- PROMS/Volian.Controls.Library/DisplayRO.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/DisplayRO.cs b/PROMS/Volian.Controls.Library/DisplayRO.cs index 8f0f9996..6854b29d 100644 --- a/PROMS/Volian.Controls.Library/DisplayRO.cs +++ b/PROMS/Volian.Controls.Library/DisplayRO.cs @@ -332,7 +332,9 @@ namespace Volian.Controls.Library string aplicValues = rntval.Substring(startCVIdx, EndCVidx + 6 - startCVIdx); int endDefIdx = rntval.IndexOf(",", startCVIdx); // C2022-001 - handle if there is no child value in the RO FSt - string defValue = rntval.Substring(startCVIdx + 16, ((endDefIdx > 0) ? endDefIdx : EndCVidx) - (startCVIdx + 16)); + // B2022-051 - was sometimes leaving "/APL>" when processing return value maded up from multiple RO (editor) fields + // added check to make where next found comma was within the current + string defValue = rntval.Substring(startCVIdx + 16, ((endDefIdx > 0 && endDefIdx < EndCVidx) ? endDefIdx : EndCVidx) - (startCVIdx + 16)); rntval = rntval.Replace(aplicValues, defValue); } return rntval;