summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-09-23 16:12:11 +0200
committergerv%gerv.net <>2002-09-23 16:12:11 +0200
commitcc5259d72abaf2fd8799fa153ac1428940e6a67b (patch)
treeb4b338447c5f036b2edd53b5b594488154720158 /post_bug.cgi
parent91906ecaf434dda8b186f611b51c70a07d7662f6 (diff)
downloadbugzilla-cc5259d72abaf2fd8799fa153ac1428940e6a67b.tar.gz
bugzilla-cc5259d72abaf2fd8799fa153ac1428940e6a67b.tar.xz
Bug 170064 - Change error API again to allow vars to be passed in the call. Patch by gerv; r=bbaetz.
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 22aa0e6bd..206c75c57 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -262,14 +262,14 @@ foreach my $b (grep(/^bit-\d*$/, keys %::FORM)) {
if ($::FORM{$b}) {
my $v = substr($b, 4);
$v =~ /^(\d+)$/
- || ThrowCodeError("group_id_invalid", "abort");
+ || ThrowCodeError("group_id_invalid", undef, "abort");
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", "abort");
+ ThrowCodeError("inactive_group", undef, "abort");
}
SendSQL("SELECT user_id FROM user_group_map
WHERE user_id = $::userid