aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-22 16:24:06 -0800
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-22 16:24:06 -0800
commitf6e24acaeb1e9b0f7f4eafb27bc7adf81d5dd9e2 (patch)
tree756824fb56c3da7d248f9d4820dce4cdb4f0a756 /post_bug.cgi
parentBug 547336: Make installation work on Windows with Strawberry Perl Professional (diff)
downloadbugzilla-f6e24acaeb1e9b0f7f4eafb27bc7adf81d5dd9e2.tar.gz
bugzilla-f6e24acaeb1e9b0f7f4eafb27bc7adf81d5dd9e2.tar.bz2
bugzilla-f6e24acaeb1e9b0f7f4eafb27bc7adf81d5dd9e2.zip
Bug 526184: Allow groups to be specified when creating bugs using email_in.pl
or the WebService Bug.create method. r=LpSolit, a=LpSolit
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi9
1 files changed, 1 insertions, 8 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index e8f9acc01..5a1da173f 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -103,13 +103,6 @@ if (defined $cgi->param('maketemplate')) {
umask 0;
-# Group Validation
-my @selected_groups;
-foreach my $group (grep(/^bit-\d+$/, $cgi->param())) {
- $group =~ /^bit-(\d+)$/;
- push(@selected_groups, $1);
-}
-
# The format of the initial comment can be structured by adding fields to the
# enter_bug template and then referencing them in the comment template.
my $comment;
@@ -158,7 +151,7 @@ foreach my $field (@bug_fields) {
$bug_params{$field} = $cgi->param($field);
}
$bug_params{'cc'} = [$cgi->param('cc')];
-$bug_params{'groups'} = \@selected_groups;
+$bug_params{'groups'} = [$cgi->param('groups')];
$bug_params{'comment'} = $comment;
my @multi_selects = grep {$_->type == FIELD_TYPE_MULTI_SELECT && $_->enter_bug}