Commit 8f420d03 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 400243: "votes:n" quicksearch should be "at least n votes", not "more than n…

Bug 400243: "votes:n" quicksearch should be "at least n votes", not "more than n votes" - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=justdave a=LpSolit
parent 42e681b4
......@@ -274,7 +274,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 =~ /^([^\?]+\?)([^\?]*)$/) {
# Flag and requestee shortcut
......
......@@ -293,7 +293,17 @@
<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>
......@@ -330,19 +340,6 @@
<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>
......@@ -371,30 +368,10 @@
<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>
-->
<tr>
<td><i>flag</i><b>?</b><i>requestee</i></td>
<td><b>flag:</b><i>flag?</i> <b>requestee:</b><i>requestee</i></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment