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
|
//delete opi
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
TurnChangeManagerOn.Execute(); // Import Turns off the Change Manager - Delete needs to have it on
|
||||||
Item.DeleteItemAndChildren(pi);
|
Item.DeleteItemAndChildren(pi);
|
||||||
|
TurnChangeManagerOff.Execute(); // Assure that the Change Manager is off
|
||||||
}
|
}
|
||||||
catch(Exception ex)
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
ExternalTransitionItem = pi.HandleSqlExceptionOnDelete(ex);
|
ExternalTransitionItem = pi.HandleSqlExceptionOnDelete(ex);
|
||||||
File.Delete(fn);
|
File.Delete(fn);
|
||||||
|
TurnChangeManagerOff.Execute(); // Assure that the Change Manager is off
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//add imported procedure
|
//add imported procedure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user