Fixed logic to turn Change Manager on when procedure is replaced as part of import.
This commit is contained in:
parent
2d753b1db6
commit
900ab24184
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user