diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-05-13 22:01:42 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-05-13 22:01:42 +0200 |
commit | 61ae8e8bdab6c60b7824d46615a37aa359a79e1a (patch) | |
tree | 79d1388dc0ee1383e19cf68b00f25e9006b95f12 /xt/lib/Bugzilla/Test/Search/CustomTest.pm | |
parent | c3a935575033f36a07eb411de7715a47af358228 (diff) | |
download | bugzilla-61ae8e8bdab6c60b7824d46615a37aa359a79e1a.tar.gz bugzilla-61ae8e8bdab6c60b7824d46615a37aa359a79e1a.tar.xz |
Bug 656994: Test custom search more thoroughly in xt/search.t.
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt/lib/Bugzilla/Test/Search/CustomTest.pm')
-rw-r--r-- | xt/lib/Bugzilla/Test/Search/CustomTest.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/CustomTest.pm b/xt/lib/Bugzilla/Test/Search/CustomTest.pm index dabf338b0..d19a9c350 100644 --- a/xt/lib/Bugzilla/Test/Search/CustomTest.pm +++ b/xt/lib/Bugzilla/Test/Search/CustomTest.pm @@ -80,10 +80,10 @@ sub invalid_field_operator_combination { return undef } sub search_params { my ($self) = @_; - my %params; + my %params = %{ $self->test->{top_params} || {} }; my $counter = 0; foreach my $row (@{ $self->test->{params} }) { - $row->{v} = $self->translate_value($row); + $row->{v} = $self->translate_value($row) if exists $row->{v}; foreach my $key (keys %$row) { $params{"${key}$counter"} = $row->{$key}; } @@ -107,7 +107,7 @@ sub translate_value { sub search_columns { my ($self) = @_; - return ['bug_id', @{ $self->test->{columns} }]; + return ['bug_id', @{ $self->test->{columns} || [] }]; } 1; |