summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-08-08 04:48:09 +0200
committerlpsolit%gmail.com <>2007-08-08 04:48:09 +0200
commit53ffc92a0a76c7fd0ed689ec281826b52ed6b7cd (patch)
tree514b4040b16ecc040db4b00b26fdc959a5c70cee
parenta54149e000548823cfc5821957bc7e5c13def944 (diff)
downloadbugzilla-53ffc92a0a76c7fd0ed689ec281826b52ed6b7cd.tar.gz
bugzilla-53ffc92a0a76c7fd0ed689ec281826b52ed6b7cd.tar.xz
Bug 391073: process_bug.cgi throws an error if a bug is moved to another product or component where a given flag doesn't apply as is - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
-rw-r--r--Bugzilla/Error.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm
index d9f6e70b3..d5b8a3479 100644
--- a/Bugzilla/Error.pm
+++ b/Bugzilla/Error.pm
@@ -41,7 +41,9 @@ sub _throw_error {
# Make sure any locked tables are unlocked
# and the transaction is rolled back (if supported)
- Bugzilla->dbh->bz_unlock_tables(UNLOCK_ABORT);
+ # If we are within an eval(), do not unlock tables as we are
+ # eval'uating some test on purpose.
+ Bugzilla->dbh->bz_unlock_tables(UNLOCK_ABORT) unless $^S;
my $datadir = bz_locations()->{'datadir'};
# If a writable $datadir/errorlog exists, log error details there.