Commit 53ffc92a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 391073: process_bug.cgi throws an error if a bug is moved to another product…

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é©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent a54149e0
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment