From: lpsolit%gmail.com <> Date: Mon, 3 Dec 2007 05:12:09 +0000 (+0000) Subject: Bug 400243: "votes:n" quicksearch should be "at least n votes", not "more than n... X-Git-Tag: bugzilla-3.1.3~446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f420d0384bb790a7f264450040b581448f1bee8;p=thirdparty%2Fbugzilla.git Bug 400243: "votes:n" quicksearch should be "at least n votes", not "more than n votes" - Patch by Frédéric Buclin r=justdave a=LpSolit --- diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index b9bd4a6ae5..26cd7e2c03 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 565e530138..4d96f5d05a 100644 --- a/template/en/default/pages/quicksearchhack.html.tmpl +++ b/template/en/default/pages/quicksearchhack.html.tmpl @@ -293,7 +293,17 @@ attachmimetype Attachment mime-type (“attachments.mimetype”) - + +   +   + votes +   + + Number of votes
+ (votes:N and votes>=N mean "at least N votes", + votes>N means "more than N votes") + +

@@ -330,19 +340,6 @@ :area product,component:area - sev severity:sev @@ -371,30 +368,10 @@ @assignee assignedto:assignee - !keyword keywords:keyword - flag?requestee flag:flag? requestee:requestee