From 5cc0a3b41f77a4fc229d168e69c8c6485d2bc468 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 3 Dec 2007 05:19:45 +0000 Subject: [PATCH] =?utf8?q?Bug=20400243:=20"votes:n"=20quicksearch=20should?= =?utf8?q?=20be=20"at=20least=20n=20votes",=20not=20"more=20than=20n=20vot?= =?utf8?q?es"=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin?= =?utf8?q?=20=20r=3Djustdave=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Search/Quicksearch.pm | 2 +- .../default/pages/quicksearchhack.html.tmpl | 45 +++++-------------- 2 files changed, 12 insertions(+), 35 deletions(-) diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index 3328e1f559..151d6f81a7 100644 --- a/Bugzilla/Search/Quicksearch.pm +++ b/Bugzilla/Search/Quicksearch.pm @@ -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 diff --git a/template/en/default/pages/quicksearchhack.html.tmpl b/template/en/default/pages/quicksearchhack.html.tmpl index 47a0eacd3b..821f3ad5b0 100644 --- a/template/en/default/pages/quicksearchhack.html.tmpl +++ b/template/en/default/pages/quicksearchhack.html.tmpl @@ -264,7 +264,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") + +

@@ -301,19 +311,6 @@ :area product,component:area - sev severity:sev @@ -342,30 +339,10 @@ @assignee assignedto:assignee - !keyword keywords:keyword -

-- 2.47.3