]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 400243: "votes:n" quicksearch should be "at least n votes", not "more than n...
authorlpsolit%gmail.com <>
Mon, 3 Dec 2007 05:19:45 +0000 (05:19 +0000)
committerlpsolit%gmail.com <>
Mon, 3 Dec 2007 05:19:45 +0000 (05:19 +0000)
Bugzilla/Search/Quicksearch.pm
template/en/default/pages/quicksearchhack.html.tmpl

index 3328e1f55932ad025dbb26e6a5de7c7ad764507f..151d6f81a7935f35474e7781c37d577bb1852c6b 100644 (file)
@@ -267,7 +267,7 @@ sub quicksearch {
                 foreach my $or_operand (split(/\|/, $qsword)) {
                     if ($or_operand =~ /^votes:([0-9]+)$/) {
                         # votes:xx ("at least xx votes")
-                        addChart('votes', 'greaterthan', $1, $negate);
+                        addChart('votes', 'greaterthan', $1 - 1, $negate);
                     }
                     elsif ($or_operand =~ /^([^:]+):([^:]+)$/) {
                         # generic field1,field2,field3:value1,value2 notation
index 47a0eacd3b09465055f1030235a4f758330e4ee4..821f3ad5b08a135c99ba17a485a2cb860778f18f 100644 (file)
   <td><tt>attachmimetype</tt></td>
   <td>Attachment mime-type <i>(&ldquo;attachments.mimetype&rdquo;)</i></td>
 </tr>
-
+<tr>
+  <td>&nbsp;</td>
+  <td>&nbsp;</td>
+  <td><tt>votes</tt></td>
+  <td>&nbsp;</td>
+  <td>
+    Number of votes<br>
+    (votes:<i>N</i> and votes&gt;=<i>N</i> mean "at least N votes",
+    votes&gt;<i>N</i> means "more than N votes")
+  </td>
+</tr>
 </table>
 
 <p>
   <td><b>:</b><i>area</i></td>
   <td><b>product,component:</b><i>area</i></td>
 </tr>
-<!--
-<tr>
-  <td><tt>:browser</tt></td>
-  <td><i>[% terms.bugs %] in the Browser product</i></td>
-</tr>
- <td><tt>:mail</tt></td>
-  <td><i>[% terms.bugs %] in the MailNews product</td>
-</tr>
-<tr>
-  <td><tt>:xbl</tt></td>
-  <td><i>[% terms.bugs %] in the XBL component</i></td>
-</tr>
-  -->
 <tr>
   <td><i>sev</i></td>
   <td><b>severity:</b><i>sev</i></td>
   <td><b>@</b><i>assignee</i></td>
   <td><b>assignedto:</b><i>assignee</i></td>
 </tr>
-<!--
-<tr>
-  <td><tt>@nobody</tt></td>
-  <td><i>assigneeless [% terms.bugs %]</i></td>
-</tr>
-<tr>
-  <td><tt>@mozilla.org</tt></td>
-  <td><i>[% terms.bugs %] assigned to mozilla.org members</i></td>
-</tr>
-  -->
 <tr>
   <td><b>!</b><i>keyword</i></td>
   <td><b>keywords:</b><i>keyword</i></td>
 </tr>
-<!--
-<tr>
-  <td><tt>!crash</tt></td>
-  <td><i>crasher [% terms.bugs %]</i></td>
-</tr>
-<tr>
-  <td><tt>!helpwanted</tt></td>
-  <td><i>[% terms.bugs %] waiting for your help</i></td>
-</tr>
-  -->
 </table>
 
 <p>