From f6e24acaeb1e9b0f7f4eafb27bc7adf81d5dd9e2 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Mon, 22 Feb 2010 16:24:06 -0800 Subject: Bug 526184: Allow groups to be specified when creating bugs using email_in.pl or the WebService Bug.create method. r=LpSolit, a=LpSolit --- post_bug.cgi | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'post_bug.cgi') 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} -- cgit v1.2.3-24-g4f1b