summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search/Quicksearch.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Search/Quicksearch.pm')
-rw-r--r--Bugzilla/Search/Quicksearch.pm8
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";
}