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

Bug 601364: Make search.t *actually* do the basic field=value tests

r=mkanat, a=mkanat (module owner)
parent 255a2bf2
......@@ -42,17 +42,14 @@ sub name {
sub search_params {
my ($self) = @_;
return $self->{search_params} if $self->{search_params};
my $field = $self->field;
my $operator = $self->operator;
$field =~ s/\./_/g;
my $value = $self->translated_value;
my %params = (
$field => $value,
"${field}_type" => $self->operator,
);
$self->{search_params} = \%params;
return $self->{search_params};
if ($operator eq 'anyexact') {
$value = [split(',', $value)];
}
return { $field => $value, "${field}_type" => $self->operator };
}
1;
\ No newline at end of file
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