Commit dcc65060 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

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
parent 8e9c6c35
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment