B2018-111: Create Missing Enhanced Step on sub-step’s Caution/Note (should not be allowed)

This commit is contained in:
Kathy Ruffing 2018-08-09 12:40:14 +00:00
parent 4ad9fd65bf
commit efc2d818de

View File

@ -283,7 +283,8 @@ namespace Volian.Controls.Library
{ {
if (sed.Type == edtypebtn) 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.Visible = true;
biEnhanced.Text = string.Format("Create Missing Enhanced {0} Document Step", dveds.GetByType(edtypebtn).Name); biEnhanced.Text = string.Format("Create Missing Enhanced {0} Document Step", dveds.GetByType(edtypebtn).Name);