diff --git a/PROMS/VEPROMS User Interface/dlgExportImport.cs b/PROMS/VEPROMS User Interface/dlgExportImport.cs index cea572fd..5c1b968e 100644 --- a/PROMS/VEPROMS User Interface/dlgExportImport.cs +++ b/PROMS/VEPROMS User Interface/dlgExportImport.cs @@ -2624,6 +2624,10 @@ namespace VEPROMS if (content.MyGrid != null && content.MyGrid.Data != "") content.MyGrid.Data = content.MyGrid.Data.Replace(lookfor, replacewith); content.FixTransitionText(TransitionInfo.Get(tt.TransitionID)); + // B2017=003 make sure any grid changes are saved. + // done here because FixTransitionText() could update the transitions in the grid + if (content.MyGrid != null && content.MyGrid.Data != "") + content.MyGrid.Save(); content.Save(); } else @@ -2699,6 +2703,10 @@ namespace VEPROMS forceConvertToText = (sc.SubSection_Edit == "N"); } cc.FixTransitionText(TransitionInfo.Get(tt.TransitionID), forceConvertToText); + // B2017=003 make sure any grid changes are saved. + // done here because FixTransitionText() could update the transitions in the grid + if (cc.MyGrid != null && cc.MyGrid.Data != "") + cc.MyGrid.Save(); cc.Save(); nd.InnerText = "done"; } @@ -2757,6 +2765,10 @@ namespace VEPROMS // forceConvertToText = true; //} cc.FixTransitionText(TransitionInfo.Get(tt.TransitionID), forceConvertToText); + // B2017=003 make sure any grid changes are saved. + // done here because FixTransitionText() could update the transitions in the grid + if (cc.MyGrid != null && cc.MyGrid.Data != "") + cc.MyGrid.Save(); cc.Save(); nd.InnerText = "done"; _DidConvertTransitionsToText |= forceConvertToText; // B2016-225 - notify user when transitions are converted to text