diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-23 01:24:06 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-23 01:24:06 +0100 |
commit | f6e24acaeb1e9b0f7f4eafb27bc7adf81d5dd9e2 (patch) | |
tree | 756824fb56c3da7d248f9d4820dce4cdb4f0a756 /email_in.pl | |
parent | 0b85419f77869b943323c3656d8900f9ad6e1dfc (diff) | |
download | bugzilla-f6e24acaeb1e9b0f7f4eafb27bc7adf81d5dd9e2.tar.gz bugzilla-f6e24acaeb1e9b0f7f4eafb27bc7adf81d5dd9e2.tar.xz |
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 'email_in.pl')
-rwxr-xr-x | email_in.pl | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/email_in.pl b/email_in.pl index 1f610f138..15dfcb728 100755 --- a/email_in.pl +++ b/email_in.pl @@ -154,26 +154,6 @@ sub post_bug { $fields->{$field} = undef if !exists $fields->{$field}; } - # Restrict the bug to groups marked as Default. - # We let Bug->create throw an error if the product is - # not accessible, to throw the correct message. - $fields->{product} = '' if !defined $fields->{product}; - my $product = new Bugzilla::Product({ name => $fields->{product} }); - if ($product) { - my @gids; - my $controls = $product->group_controls; - foreach my $gid (keys %$controls) { - if (($controls->{$gid}->{membercontrol} == CONTROLMAPDEFAULT - && $user->in_group_id($gid)) - || ($controls->{$gid}->{othercontrol} == CONTROLMAPDEFAULT - && !$user->in_group_id($gid))) - { - push(@gids, $gid); - } - } - $fields->{groups} = \@gids; - } - my ($retval, $non_conclusive_fields) = Bugzilla::User::match_field({ 'assigned_to' => { 'type' => 'single' }, |