B2017-201 Was getting a NULL reference for SI (Section Info) when generating the approved PDF, if the Summary of Changes was not done with the approval.
This commit is contained in:
parent
f2247946e0
commit
19b4f603df
@ -1707,6 +1707,9 @@ namespace Volian.Print.Library
|
||||
if (section.IsStepSection && nxtItem.IsStepSection)
|
||||
{
|
||||
SectionInfo si = nxtItem as SectionInfo;
|
||||
// B2017-201 if si is null we need to get it via the ItemID
|
||||
if (si == null)
|
||||
si = SectionInfo.Get(nxtItem.ItemID); //ActiveSection as SectionInfo;
|
||||
SectionConfig sc = si.SectionConfig;
|
||||
try
|
||||
{
|
||||
|
@ -2161,6 +2161,9 @@ namespace Volian.Print.Library
|
||||
// is a single column section.
|
||||
//bool _skipEndMessage = MyPageHelper.MySection.SectionConfig.Section_ColumnMode == SectionConfig.SectionColumnMode.One && !MyItemInfo.ActiveFormat.MyStepSectionLayoutData.EndForSingle;
|
||||
SectionInfo si = MyItemInfo.MyActiveSection as SectionInfo;
|
||||
// B2017-201 if si is null we need to get it via the ItemID
|
||||
if (si == null)
|
||||
si = SectionInfo.Get(MyItemInfo.MyActiveSection.ItemID); //ActiveSection as SectionInfo;
|
||||
bool _skipEndMessage = si.SectionConfig.Section_ColumnMode == SectionConfig.SectionColumnMode.One && !MyItemInfo.ActiveFormat.MyStepSectionLayoutData.EndForSingle;
|
||||
bool _lastSect = true;
|
||||
if (si.MyActiveParent.IsSection) // is this meta/subsection. Only put end message out on last section
|
||||
|
Loading…
x
Reference in New Issue
Block a user