diff --git a/PROMS/VEPROMS User Interface/frmSectionProperties.cs b/PROMS/VEPROMS User Interface/frmSectionProperties.cs index 7a4ffa92..eee66c0e 100644 --- a/PROMS/VEPROMS User Interface/frmSectionProperties.cs +++ b/PROMS/VEPROMS User Interface/frmSectionProperties.cs @@ -132,9 +132,22 @@ namespace VEPROMS { ssav.SectionConfig.Section_OriginalSteps = "N"; ssav.Save(); + ItemInfo.Refresh(ssav); } } } + // also need to set the procedure's config sectionstart to the selected section + // if it is not set: + using (Procedure p = Procedure.Get(_SectionConfig.MySection.MySectionInfo.MyProcedure.ItemID)) + { + if (p.ProcedureConfig.SectionStart != _SectionConfig.MySection.MySectionInfo.ItemID.ToString()) + { + p.ProcedureConfig.SectionStart = _SectionConfig.MySection.MySectionInfo.ItemID.ToString(); + p.Save(); + ItemInfo.Refresh(p); + } + } + } this.DialogResult = DialogResult.OK; this.Close();