]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 192218: Ability to use a hyphen as a way to filter specifically for...
authorjocuri%softhome.net <>
Mon, 25 Oct 2004 06:34:20 +0000 (06:34 +0000)
committerjocuri%softhome.net <>
Mon, 25 Oct 2004 06:34:20 +0000 (06:34 +0000)
request.cgi
template/en/default/request/queue.html.tmpl

index a494128d8973ec3a7748bcd5670272f1e7f4dd04..445783d471732c51e76737ae1e74367182342e0a 100755 (executable)
@@ -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');
     }
     
index 0eb3f21cde16e4c733ed97cd49b52e3b50375b7d..5a626b18307449cf6b4a81134331e1452b5d06df 100644 (file)
@@ -47,7 +47,8 @@
   <table id="filter">
     <tr>
       <th>Requester:</th>
-      <td><input type="text" name="requester" value="[% cgi.param('requester') FILTER html %]" size="20"></td>
+      <td><input type="text" name="requester" value="[% cgi.param('requester') FILTER html %]" size="20" 
+           title="Requester's email address"></td>
       <th>Product:</th>
       <td>
         <select name="product" onchange="selectProduct(this.form, 'product', 'component', 'Any');">
@@ -80,7 +81,8 @@
     </tr>
     <tr>
       <th>Requestee:</th>
-      <td><input type="text" name="requestee" value="[% cgi.param('requestee') FILTER html %]" size="20"></td>
+      <td><input type="text" name="requestee" value="[% cgi.param('requestee') FILTER html %]" size="20" 
+           title="Requestee's email address or &quot;-&quot; (hyphen) for requests with no requestee"></td>
       <th>Component:</th>
       <td>
         <select name="component">