diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 4 |
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 |