summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-12-03 06:12:09 +0100
committerlpsolit%gmail.com <>2007-12-03 06:12:09 +0100
commit8f420d0384bb790a7f264450040b581448f1bee8 (patch)
treef84a6bf99c2193f36e66ceb1c6070f5b2ff6e587
parent42e681b422641a896ea92e0c604aa3acd06feff3 (diff)
downloadbugzilla-8f420d0384bb790a7f264450040b581448f1bee8.tar.gz
bugzilla-8f420d0384bb790a7f264450040b581448f1bee8.tar.xz
Bug 400243: "votes:n" quicksearch should be "at least n votes", not "more than n votes" - Patch by Frédéric Buclin <LpSolit@gmail.com> r=justdave a=LpSolit
-rw-r--r--Bugzilla/Search/Quicksearch.pm2
-rw-r--r--template/en/default/pages/quicksearchhack.html.tmpl45
2 files changed, 12 insertions, 35 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index b9bd4a6ae..26cd7e2c0 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -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
diff --git a/template/en/default/pages/quicksearchhack.html.tmpl b/template/en/default/pages/quicksearchhack.html.tmpl
index 565e53013..4d96f5d05 100644
--- a/template/en/default/pages/quicksearchhack.html.tmpl
+++ b/template/en/default/pages/quicksearchhack.html.tmpl
@@ -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>