From e2b4bb1783928b8b10271ad415d17c2f080ca96f Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Mon, 25 Oct 2004 06:34:20 +0000 Subject: Patch for bug 192218: Ability to use a hyphen as a way to filter specifically for requests with no requestee; patch by Frédéric Buclin ; r=myk, a=myk. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'request.cgi') diff --git a/request.cgi b/request.cgi index a494128d8..445783d47 100755 --- a/request.cgi +++ b/request.cgi @@ -151,8 +151,10 @@ sub queue { push(@excluded_columns, 'requester') unless $cgi->param('do_union'); } if (defined $cgi->param('requestee') && $cgi->param('requestee') ne "") { - push(@criteria, "requestees.login_name = " . - SqlQuote($cgi->param('requestee'))); + if ($cgi->param('requestee') ne "-") { + push(@criteria, "requestees.login_name = " . SqlQuote($cgi->param('requestee'))); + } + else { push(@criteria, "flags.requestee_id IS NULL") } push(@excluded_columns, 'requestee') unless $cgi->param('do_union'); } -- cgit v1.2.3-24-g4f1b