[bugzilla-gnome-org-customizations/production] do not call code which is not available



commit 27c60bb4e6151c7c855947d57302257102449480
Author: Olav Vitters <olav vitters nl>
Date:   Thu Jan 5 22:13:27 2017 +0100

    do not call code which is not available

 extensions/AntiSpam/Extension.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/AntiSpam/Extension.pm b/extensions/AntiSpam/Extension.pm
index 1cb7d0e..13dc78f 100644
--- a/extensions/AntiSpam/Extension.pm
+++ b/extensions/AntiSpam/Extension.pm
@@ -29,6 +29,7 @@ use Bugzilla::Constants;
 use Bugzilla::Field;
 use Bugzilla::Object;
 use Bugzilla::Util;
+use Bugzilla::Error;
 
 our $VERSION = '0.01';
 
@@ -79,7 +80,7 @@ sub bug_end_of_create_validators {
     # Make sure any transaction is rolled back (if supported).
     # If we are within an eval(), do not roll back transactions as we are
     # eval'uating some test on purpose.
-    $dbh->bz_rollback_transaction() if ($dbh->bz_in_transaction() && !_in_eval());
+    $dbh->bz_rollback_transaction() if ($dbh->bz_in_transaction());
 
     # Disable the account
     $dbh->bz_start_transaction();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]