B2022-062: Proms crashes on Complete or Summary RO Report without ‘Sort by Setpoint ID’

This commit is contained in:
Kathy Ruffing 2022-06-09 13:02:52 +00:00
parent f55ed7f3ef
commit 530d005f90

View File

@ -475,7 +475,9 @@ namespace Volian.Controls.Library
foreach (ROFSTLookup.rochild roc in chld.children)
{
// Don't get the children if we are doing a RO Summary or RO Complete report & children are the multiple return values
if (roc.children != null && (cbxROUsage.Checked || roc.children[0].ParentID != 0))
// B2022-062: Proms crashes on Complete or Summary RO report without 'Sort by SetpointID'. With new ROfst logic,
// need to check for children length > 0 also.
if (roc.children != null && roc.children.Length > 0 && (cbxROUsage.Checked || roc.children[0].ParentID != 0))
rtnstr += GetROChildren(roc);
else
rtnstr += string.Format("{0},", roc.roid);