B2017-145 Printing an empty procedure was causing PROMs to crash

This commit is contained in:
Rich 2017-07-18 15:58:22 +00:00
parent 1995e44cc7
commit 03ed697128

View File

@ -6328,11 +6328,14 @@ namespace VEPROMS.CSLA.Library
set { _ProcHasSupInfoData = value; } set { _ProcHasSupInfoData = value; }
} }
private bool GetProcHasSupInfoData() private bool GetProcHasSupInfoData()
{
if (Sections != null) // If no sections don't check
{ {
foreach (SectionInfo mySection in Sections) foreach (SectionInfo mySection in Sections)
{ {
if (mySection.MyDocStyle.SupplementalInformation && mySection.HasSupInfoSteps) return true; if (mySection.MyDocStyle.SupplementalInformation && mySection.HasSupInfoSteps) return true;
} }
}
return false; return false;
} }
public bool CreateEnhanced = false; public bool CreateEnhanced = false;