From 9b65876cb0db0ec8dc625b982e00f8161a5821bf Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 12 Sep 2022 16:19:12 +0000 Subject: [PATCH] =?UTF-8?q?B2022-110:=20PC/PC=20Multi=20return=20values=20?= =?UTF-8?q?are=20correct=20in=20editor=20but=20not=20correct=20in=20Step?= =?UTF-8?q?=20Properties/RO=20when=20RO=20selected=20in=20editor=20or=20in?= =?UTF-8?q?=20Print.=20Additional=20fix=20=E2=80=93=20first=20change=20on?= =?UTF-8?q?=209/7/22=20made=20finding=20figure=20ros=20fail.=20This=20upda?= =?UTF-8?q?te=20fixes=20original=20bug=20&=20figures.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 9c4b1cbe..6ae7330b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -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;