From e2b4bb1783928b8b10271ad415d17c2f080ca96f Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Mon, 25 Oct 2004 06:34:20 +0000 Subject: [PATCH] =?utf8?q?Patch=20for=20bug=20192218:=20Ability=20to=20use?= =?utf8?q?=20a=20hyphen=20as=20a=20way=20to=20filter=20specifically=20for?= =?utf8?q?=20requests=20with=20no=20requestee;=20patch=20by=20Fr=C3=A9d?= =?utf8?q?=C3=A9ric=20Buclin=20;=20r=3Dmyk,=20a=3Dmy?= =?utf8?q?k.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- request.cgi | 6 ++++-- template/en/default/request/queue.html.tmpl | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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: