diff --git a/PROMS/Volian.Controls.Library/DisplayRO.cs b/PROMS/Volian.Controls.Library/DisplayRO.cs index 3e5e7d7f..4a28b064 100644 --- a/PROMS/Volian.Controls.Library/DisplayRO.cs +++ b/PROMS/Volian.Controls.Library/DisplayRO.cs @@ -538,6 +538,7 @@ namespace Volian.Controls.Library // C2021-026 pass in Parent/Child information (list of the children) // B2022-019 look at all DocVersions to find ParentChild information // to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set + // B2022-073 Break out of the foreach when we find a set with parent/child information DocVersionInfoList dvil = DocVersionInfoList.Get(); @@ -547,8 +548,8 @@ namespace Volian.Controls.Library if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") { args += " \"PC=" + dvc.Unit_Name + "\""; + break; } - break; } System.Diagnostics.Process.Start(roapp, args); @@ -1096,6 +1097,7 @@ namespace Volian.Controls.Library // C2021-026 pass in Parent/Child information (list of the children) // B2022-019 look at all DocVersions to find ParentChild information // to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set + // B2022-073 Break out of the foreach when we find a set with parent/child information DocVersionInfoList dvil = DocVersionInfoList.Get(); foreach (DocVersionInfo dvi in dvil) @@ -1105,9 +1107,8 @@ namespace Volian.Controls.Library if (jdvc != null && jdvc.Unit_Name != "" && jdvc.Unit_Name != "0") { args += " \"PC=" + jdvc.Unit_Name + "\""; + break; } - - break; } System.Diagnostics.Process.Start(roapp, args); diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 588f435d..c006532a 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -3131,13 +3131,16 @@ namespace Volian.Controls.Library // C2021-026 pass in Parent/Child information (list of the children) // B2022-019 look at all DocVersions to find ParentChild information // to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set + // B2022-073 Break out of the foreach when we find a set with parent/child information DocVersionInfoList dvil = DocVersionInfoList.Get(); foreach (DocVersionInfo dvi in dvil) { DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") + { args += " \"PC=" + dvc.Unit_Name + "\""; - break; + break; + } } System.Diagnostics.Process.Start(roapp, args); } @@ -3298,13 +3301,16 @@ namespace Volian.Controls.Library // C2021-026 pass in Parent/Child information (list of the children) // B2022-019 look at all DocVersions to find ParentChild information // to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set + // B2022-073 Break out of the foreach when we find a set with parent/child information DocVersionInfoList dvil = DocVersionInfoList.Get(); foreach (DocVersionInfo dvi in dvil) { DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") + { roloc += " \"PC=" + dvc.Unit_Name + "\""; - break; + break; + } } System.Diagnostics.Process.Start(roapp, roloc); } diff --git a/PROMS/Volian.Controls.Library/vlnTreeView.cs b/PROMS/Volian.Controls.Library/vlnTreeView.cs index 8f2680a4..cf48beb2 100644 --- a/PROMS/Volian.Controls.Library/vlnTreeView.cs +++ b/PROMS/Volian.Controls.Library/vlnTreeView.cs @@ -2103,13 +2103,16 @@ namespace Volian.Controls.Library // C2021-026 pass in Parent/Child information (list of the children) // B2022-019 look at all DocVersions to find ParentChild information // to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set + // B2022-073 Break out of the foreach when we find a set with parent/child information DocVersionInfoList dvil = DocVersionInfoList.Get(); foreach (DocVersionInfo dvi in dvil) { DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") + { roloc += " \"PC=" + dvc.Unit_Name + "\""; - break; + break; + } } System.Diagnostics.Process.Start(roapp, roloc); }