From efc2d818dee62804afe9a8fab7293d837b349bd9 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 9 Aug 2018 12:40:14 +0000 Subject: [PATCH] =?UTF-8?q?B2018-111:=20Create=20Missing=20Enhanced=20Step?= =?UTF-8?q?=20on=20sub-step=E2=80=99s=20Caution/Note=20(should=20not=20be?= =?UTF-8?q?=20allowed)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index e0710122..35febf25 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -283,7 +283,8 @@ namespace Volian.Controls.Library { if (sed.Type == edtypebtn) { - if (MyItemInfo.IsHigh || ((MyItemInfo.IsCaution || MyItemInfo.IsNote) && MyItemInfo.MyHLS.GetMyEnhancedDocuments().Count > 0)) + // B2018-111: In the following line of code, added that if item is caution/note its parent must be a high level step. + if (MyItemInfo.IsHigh || ((MyItemInfo.IsCaution || MyItemInfo.IsNote) && MyItemInfo.MyParent.IsHigh && MyItemInfo.MyHLS.GetMyEnhancedDocuments().Count > 0)) { biEnhanced.Visible = true; biEnhanced.Text = string.Format("Create Missing Enhanced {0} Document Step", dveds.GetByType(edtypebtn).Name);