diff options
author | gerv%gerv.net <> | 2002-08-15 13:43:44 +0000 |
---|---|---|
committer | gerv%gerv.net <> | 2002-08-15 13:43:44 +0000 |
commit | 24f062186a9b6dcdcefa79c12ae82b95243c7e41 (patch) | |
tree | 2f3234eebadd94b40fcfc837e4b42ea3341db219 /post_bug.cgi | |
parent | Bug 151619 - Problem with the regex in checksetup.pl to find dependancies (diff) | |
download | bugzilla-24f062186a9b6dcdcefa79c12ae82b95243c7e41.tar.gz bugzilla-24f062186a9b6dcdcefa79c12ae82b95243c7e41.tar.bz2 bugzilla-24f062186a9b6dcdcefa79c12ae82b95243c7e41.zip |
Bug 162066 - Fix callers of ThrowCodeError to use messages in code-error.html.tmpl. Patch by gerv; r=bbaetz.
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index 2b4859ccd..9d3c0cca9 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -251,15 +251,14 @@ foreach my $b (grep(/^bit-\d*$/, keys %::FORM)) { if ($::FORM{$b}) { my $v = substr($b, 4); $v =~ /^(\d+)$/ - || ThrowCodeError("One of the group bits submitted was invalid.", - undef, "abort"); + || ThrowCodeError("group_bit_invalid", "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. - ThrowCodeError("Attempted to add bug to an inactive group, " . - "identified by the bit '$v'.", undef, "abort"); + $vars->{'bit'} = $v; + ThrowCodeError("inactive_group", "abort"); } $sql .= " + $v"; # Carefully written so that the math is # done by MySQL, which can handle 64-bit math, |