B2022-110: PC/PC Multi return values are correct in editor but not correct in Step Properties/RO when RO selected in editor or in Print. Additional fix – first change on 9/7/22 made finding figure ros fail. This update fixes original bug & figures.

This commit is contained in:
Kathy Ruffing 2022-09-12 16:19:12 +00:00
parent 1dc95d38af
commit 9b65876cb0

View File

@ -1754,7 +1754,10 @@ namespace VEPROMS.CSLA.Library
for (int i = 0; i < lstValues.Count; i++)
{
// B2022-110: PC/PC Multi return values are correct in editor but not correct in Step Properties/ROs when selected, or when printed
var roExt = lstValues.Count==1?null:Extensions.Where(x => x.AccPageExt.Equals(_multiRoValues[i])).SingleOrDefault();
// B2022-110 continued (9/12/22): for lstValues.Count of 1, needed to use code that was there so that value can be used later for
// setting appid and roid
var roExt = lstValues.Count==1? Extensions.Where(x => x.Offset.Equals(i + 1)).SingleOrDefault() : Extensions.Where(x => x.AccPageExt.Equals(_multiRoValues[i])).SingleOrDefault();
string roValue = GetParentChildROValue(lstValues[i], this.SelectedSlave);
child.children[i].ParentID = child.ID;