summaryrefslogtreecommitdiffstats
path: root/request.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-10-25 08:34:20 +0200
committerjocuri%softhome.net <>2004-10-25 08:34:20 +0200
commite2b4bb1783928b8b10271ad415d17c2f080ca96f (patch)
tree2171fb30373c786601a33b179aceea7347feddfa /request.cgi
parentef6774469d8f5232bacb2266d469e57c63c3c689 (diff)
downloadbugzilla-e2b4bb1783928b8b10271ad415d17c2f080ca96f.tar.gz
bugzilla-e2b4bb1783928b8b10271ad415d17c2f080ca96f.tar.xz
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 <LpSolit@netscape.net>; r=myk, a=myk.
Diffstat (limited to 'request.cgi')
-rwxr-xr-xrequest.cgi6
1 files changed, 4 insertions, 2 deletions
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');
}