Additional logic added to try and find a step editor section that could be the default step section, when one was not set.

This commit is contained in:
John Jenko 2016-05-18 19:48:09 +00:00
parent ea890ff0fa
commit 3d62b2c50a

View File

@ -941,6 +941,11 @@ namespace Volian.Controls.Library
if (sit.DisplayText.ToUpper().Contains("PROCEDURE STEPS"))
return sit.ItemID;
}
foreach (SectionInfo sit in prcitm.Sections)
{
if (sit.DisplayText.ToUpper().Equals("PROCEDURE"))// bug fix: B2015-003
return sit.ItemID;
}
}
// 4) Format has flag that a default section is not required so return 1st section.
if (prcitm.Sections != null)