summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-29 23:14:14 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-29 23:14:14 +0200
commit35f99bbebf22b711ba24d15377f2de2a73eff2c4 (patch)
tree33004e6d9448b8585ce0b799e49f64953ff5691e /Bugzilla/Search
parent8f04aae656cf6218ef3028ab615989c0269af66c (diff)
downloadbugzilla-35f99bbebf22b711ba24d15377f2de2a73eff2c4.tar.gz
bugzilla-35f99bbebf22b711ba24d15377f2de2a73eff2c4.tar.xz
Bug 554986: Add a "notmatches" search type, which allows the minus sign
operator to start working for bare words in Quicksearch again r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Search')
-rw-r--r--Bugzilla/Search/Quicksearch.pm13
1 files changed, 2 insertions, 11 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index c71fab85b..7839c4fd5 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -524,19 +524,10 @@ sub matchPrefixes {
sub negateComparisonType {
my $comparisonType = shift;
- if ($comparisonType eq 'substring') {
- return 'notsubstring';
- }
- elsif ($comparisonType eq 'anywords') {
+ if ($comparisonType eq 'anywords') {
return 'nowords';
}
- elsif ($comparisonType eq 'regexp') {
- return 'notregexp';
- }
- else {
- # Don't know how to negate that
- ThrowCodeError('unknown_comparison_type');
- }
+ return "not$comparisonType";
}
# Add a boolean chart