Fixed logic to turn Change Manager on when procedure is replaced as part of import.

This commit is contained in:
Rich 2016-02-25 19:43:26 +00:00
parent 2d753b1db6
commit 900ab24184

View File

@ -391,12 +391,15 @@ namespace VEPROMS
//delete opi
try
{
TurnChangeManagerOn.Execute(); // Import Turns off the Change Manager - Delete needs to have it on
Item.DeleteItemAndChildren(pi);
TurnChangeManagerOff.Execute(); // Assure that the Change Manager is off
}
catch(Exception ex)
{
ExternalTransitionItem = pi.HandleSqlExceptionOnDelete(ex);
File.Delete(fn);
TurnChangeManagerOff.Execute(); // Assure that the Change Manager is off
return;
}
//add imported procedure