Use MyActiveParent instead of MyParent in setting up the section properties dialog to fix a null reference problem B2016-280
This commit is contained in:
parent
52f9a16ce0
commit
256ce987f9
@ -420,7 +420,7 @@ namespace VEPROMS
|
||||
// Handle Default Step Section. First, this checkbox is only visible if it is
|
||||
// a step section & it is the highest level (top, right below procedures).
|
||||
ppCbDefaultStepSection.Visible = false;
|
||||
if (_isStepSection && _SectionConfig.MySection.MySectionInfo.MyParent.IsProcedure)
|
||||
if (_isStepSection && _SectionConfig.MySection.MySectionInfo.MyActiveParent.IsProcedure) // B2016-280 - use MyActiveParent because MyParent was sometimes null
|
||||
{
|
||||
ppCbDefaultStepSection.Visible = true;
|
||||
ppCbDefaultStepSection.Checked = _SectionConfig.Section_OriginalSteps == "Y";
|
||||
|
Loading…
x
Reference in New Issue
Block a user