From db2e681e87ad1d15bc0c8f8ef08e222da7ea97c1 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 1 Feb 2010 13:11:53 -0800 Subject: Bug 534057: Auto-completion no longer works in email_in.pl Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- email_in.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'email_in.pl') diff --git a/email_in.pl b/email_in.pl index 044c13040..c7b11d8a7 100755 --- a/email_in.pl +++ b/email_in.pl @@ -152,6 +152,17 @@ sub post_bug { $fields->{$field} = undef if !exists $fields->{$field}; } + my ($retval, $non_conclusive_fields) = + Bugzilla::User::match_field({ + 'assigned_to' => { 'type' => 'single' }, + 'qa_contact' => { 'type' => 'single' }, + 'cc' => { 'type' => 'multi' } + }, $fields, MATCH_SKIP_CONFIRM); + + if ($retval != USER_MATCH_SUCCESS) { + ThrowUserError('user_match_too_many', {fields => $non_conclusive_fields}); + } + my $bug = Bugzilla::Bug->create($fields); debug_print("Created bug " . $bug->id); return ($bug, $bug->comments->[0]); -- cgit v1.2.3-24-g4f1b