summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-03-07 15:41:17 +0100
committerDylan William Hardison <dylan@hardison.net>2017-03-07 15:41:17 +0100
commit26367637b952a2d27f2145c2a580b4c174cf3d35 (patch)
tree84f5752221d00900f1ca3cd0444da2e94636a802 /Bugzilla
parentdf64b724fab74da6de0d4d2ee4bb112389da68d0 (diff)
downloadbugzilla-26367637b952a2d27f2145c2a580b4c174cf3d35.tar.gz
bugzilla-26367637b952a2d27f2145c2a580b4c174cf3d35.tar.xz
Bug 1343530 - Make the ALL quicksearch keywords show all results
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search/Quicksearch.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index 31d8e2b2a..4f11a3f54 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -350,6 +350,10 @@ sub _handle_status_and_resolution {
my (%states, %resolutions);
$bug_status_set = 1;
+ if ($word =~ s/^(ALL|OPEN)\+$/$1/) {
+ Bugzilla->cgi->param('limit' => 0);
+ }
+
if ($word eq 'OPEN') {
$states{$_} = 1 foreach BUG_STATE_OPEN;
}
@@ -620,9 +624,12 @@ sub _matches_phrase {
# Expand found prefixes to states or resolutions
sub matchPrefixes {
my ($hr_states, $hr_resolutions, $word, $ar_check_states) = @_;
- return unless $word =~ /^[A-Z_]+(,[A-Z_]+)*$/;
+ return unless $word =~ /^[A-Z_]+(,[A-Z_]+)*\+?$/;
my @ar_prefixes = split(/,/, $word);
+ if ($ar_prefixes[-1] =~ s/\+$//) {
+ Bugzilla->cgi->param(limit => 0);
+ }
my $ar_check_resolutions = get_legal_field_values('resolution');
my $foundMatch = 0;