diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-25 03:18:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 03:18:14 +0200 |
commit | 8e23b3e337e4f9508ea8e518ad75decd4f3bb2f8 (patch) | |
tree | 4d668198ae13cbeb7fd1234898756997f51f01b0 /Bugzilla/Search | |
parent | 2f51d1b91da4f5bd3fdea589a14dfe7ef5536f8f (diff) | |
download | bugzilla-8e23b3e337e4f9508ea8e518ad75decd4f3bb2f8.tar.gz bugzilla-8e23b3e337e4f9508ea8e518ad75decd4f3bb2f8.tar.xz |
Bug 1464226 - quicksearch can't search for "Resolution:---"
Diffstat (limited to 'Bugzilla/Search')
-rw-r--r-- | Bugzilla/Search/Quicksearch.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index 6897d2219..6c0253e27 100644 --- a/Bugzilla/Search/Quicksearch.pm +++ b/Bugzilla/Search/Quicksearch.pm @@ -469,6 +469,11 @@ sub _handle_field_names { $value = $2; $value =~ s/\\(["'])/$1/g; } + # If the value is a pair of matching quotes, the person wanted the empty string + elsif ($value =~ /^(["'])\1$/ || $translated eq 'resolution' && $value eq '---') { + $value = ""; + $operator = "isempty"; + } addChart($translated, $operator, $value, $negate); } } @@ -659,6 +664,9 @@ sub negateComparisonType { if ($comparisonType eq 'anywords') { return 'nowords'; } + elsif ($comparisonType eq 'isempty') { + return 'isnotempty'; + } return "not$comparisonType"; } |