From 7184a4dceb58a3d3e4b5b3830f199a8117b8f3b7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Tue, 30 Aug 2005 17:01:22 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20212856:=20Request=20queue=20doesn't=20val?= =?UTF-8?q?idate=20email=20addresses=20-=20Patch=20by=20Fr=EF=BF=BDd?= =?UTF-8?q?=EF=BF=BDric=20Buclin=20=20r=3Djoel=20a=3Dmy?= =?UTF-8?q?k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webtools/bugzilla/request.cgi | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/webtools/bugzilla/request.cgi b/webtools/bugzilla/request.cgi index a3779bd8dcf..b0f45b1ccca 100755 --- a/webtools/bugzilla/request.cgi +++ b/webtools/bugzilla/request.cgi @@ -30,7 +30,7 @@ use strict; # Include the Bugzilla CGI and general utility library. use lib qw(.); require "globals.pl"; - +use Bugzilla; # Use Bugzilla's Request module which contains utilities for handling requests. use Bugzilla::Flag; use Bugzilla::FlagType; @@ -47,6 +47,20 @@ Bugzilla->login(); # Main Body Execution ################################################################################ +my $cgi = Bugzilla->cgi; + +my $fields; +$fields->{'requester'}->{'type'} = 'single'; +# If the user doesn't restrict his search to requests from the wind +# (requestee ne '-'), include the requestee for completion. +unless (defined $cgi->param('requestee') + && $cgi->param('requestee') eq '-') +{ + $fields->{'requestee'}->{'type'} = 'single'; +} + +Bugzilla::User::match_field($cgi, $fields); + queue(); exit;