diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-02 09:25:53 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-02 09:25:53 -0700 |
commit | b96b7a4b70e95918190effa67520c2fbf30cdcab (patch) | |
tree | 3ec6b13430f4daa1e70de7f68abfb82c0cdcf313 /xt | |
parent | 255a2bf2f26d69b970b4d263d71e1bab59dc41c1 (diff) | |
download | bugs-b96b7a4b70e95918190effa67520c2fbf30cdcab.tar bugs-b96b7a4b70e95918190effa67520c2fbf30cdcab.tar.gz bugs-b96b7a4b70e95918190effa67520c2fbf30cdcab.tar.bz2 bugs-b96b7a4b70e95918190effa67520c2fbf30cdcab.tar.xz bugs-b96b7a4b70e95918190effa67520c2fbf30cdcab.zip |
Bug 601364: Make search.t *actually* do the basic field=value tests
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt')
-rw-r--r-- | xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm index f0f8ed8c4..b42db08e2 100644 --- a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm +++ b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm @@ -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 |