summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-02 18:09:57 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-02 18:09:57 +0200
commitdcc65060dbbae8b7acab0343ee01553a07d83a52 (patch)
treef83e615d751ad234c0b04f653d7bfe0a98cbda2c
parent8e9c6c3568af1bc384eb4ce64d9eae3f89004da3 (diff)
downloadbugzilla-dcc65060dbbae8b7acab0343ee01553a07d83a52.tar.gz
bugzilla-dcc65060dbbae8b7acab0343ee01553a07d83a52.tar.xz
Make content_type work as a buglist.cgi parameter, for setting the
search operator for the "content" field. r=mkanat, a=mkanat (module owner) https://bugzilla.mozilla.org/show_bug.cgi?id=601370
-rw-r--r--Bugzilla/Search.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 0a5b5eb22..08406068c 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1209,8 +1209,8 @@ sub _parse_basic_fields {
$param_name =~ s/\./_/g;
my @values = $self->_param_array($param_name);
next if !@values;
- my $operator = $params->{"${param_name}_type"} || 'anyexact';
- $operator = 'matches' if $param_name eq 'content';
+ my $default_op = $param_name eq 'content' ? 'matches' : 'anyexact';
+ my $operator = $params->{"${param_name}_type"} || $default_op;
# Fields that are displayed as multi-selects are passed as arrays,
# so that they can properly search values that contain commas.
# However, other fields are sent as strings, so that they are properly