summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-05 09:18:47 +0100
committermkanat%kerio.com <>2005-03-05 09:18:47 +0100
commitec610fd673feb6d6e18d121b5e67aa3f87e7f4ea (patch)
treeb1d6fe9b10b89a30e2b1932d050d5678362f638a /post_bug.cgi
parente4b8b770b0229a0761a3ef5116c7fcad4e5352d5 (diff)
downloadbugzilla-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.tar.gz
bugzilla-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.tar.xz
Bug 277782: _throw_error should unlock tables when tables are locked, automatically
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=travis, r=LpSolit, a=justdave
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi7
1 files changed, 3 insertions, 4 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 6b52b447d..d701a9172 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -318,8 +318,7 @@ if (UserInGroup("editbugs") && defined($::FORM{'dependson'})) {
}
ThrowUserError("dependency_loop_multi",
- { both => $both },
- "abort");
+ { both => $both });
}
}
my $tmp = $me;
@@ -378,14 +377,14 @@ foreach my $b (grep(/^bit-\d*$/, keys %::FORM)) {
if ($::FORM{$b}) {
my $v = substr($b, 4);
$v =~ /^(\d+)$/
- || ThrowCodeError("group_id_invalid", undef, "abort");
+ || ThrowCodeError("group_id_invalid");
if (!GroupIsActive($v)) {
# Prevent the user from adding the bug to an inactive group.
# Should only happen if there is a bug in Bugzilla or the user
# hacked the "enter bug" form since otherwise the UI
# for adding the bug to the group won't appear on that form.
$vars->{'bit'} = $v;
- ThrowCodeError("inactive_group", undef, "abort");
+ ThrowCodeError("inactive_group");
}
SendSQL("SELECT user_id FROM user_group_map
WHERE user_id = $::userid