From: jocuri%softhome.net <> Date: Mon, 25 Oct 2004 06:34:20 +0000 (+0000) Subject: Patch for bug 192218: Ability to use a hyphen as a way to filter specifically for... X-Git-Tag: bugzilla-2.19.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2b4bb1783928b8b10271ad415d17c2f080ca96f;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/request.cgi b/request.cgi index a494128d89..445783d471 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'); } diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index 0eb3f21cde..5a626b1830 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -47,7 +47,8 @@ - + - +
Requester: Product:
Requestee: Component: