From d9c17da727ded388782d269600a69bb2f6cf45f3 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Mon, 19 Feb 2018 07:15:22 +0000 Subject: [PATCH] Bug 16330: (QA follow-up) Update usage of search plugin because of bug 19686 Test plan: prove t/db_dependent/api/v1/patrons.t --> without patch the list subtest fail --> with patch test pass Signed-off-by: Josef Moravec --- Koha/REST/V1/Patrons.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm index 81e2642..42a2b15 100644 --- a/Koha/REST/V1/Patrons.pm +++ b/Koha/REST/V1/Patrons.pm @@ -44,8 +44,8 @@ sub list { return try { my $patrons_set = Koha::Patrons->new; - my @patrons = $c->objects->search( $patrons_set )->as_list; - return $c->render( status => 200, openapi => \@patrons ); + my $patrons = $c->objects->search( $patrons_set ); + return $c->render( status => 200, openapi => $patrons ); } catch { if ( $_->isa('DBIx::Class::Exception') ) { -- 2.1.4