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 --- email_in.pl | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'email_in.pl') 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' }, -- cgit v1.2.3-24-g4f1b