B2022-051 The list of RO values when inserting a RO, would sometimes have applicability token text (\APL>) listed with the possible RO values

This commit is contained in:
John Jenko 2022-05-10 18:17:45 +00:00
parent 103c5d4ff8
commit 9861a43e5b

View File

@ -332,7 +332,9 @@ namespace Volian.Controls.Library
string aplicValues = rntval.Substring(startCVIdx, EndCVidx + 6 - startCVIdx); string aplicValues = rntval.Substring(startCVIdx, EndCVidx + 6 - startCVIdx);
int endDefIdx = rntval.IndexOf(",", startCVIdx); int endDefIdx = rntval.IndexOf(",", startCVIdx);
// C2022-001 - handle if there is no child value in the RO FSt // 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 <APL ... /APL>
string defValue = rntval.Substring(startCVIdx + 16, ((endDefIdx > 0 && endDefIdx < EndCVidx) ? endDefIdx : EndCVidx) - (startCVIdx + 16));
rntval = rntval.Replace(aplicValues, defValue); rntval = rntval.Replace(aplicValues, defValue);
} }
return rntval; return rntval;