diff options
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 9 |
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} |