From dce823c12255c8d3db3761c30fc04370d3682157 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 Signed-off-by: Jonathan Druart --- 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 81e2642a17..42a2b15adf 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.39.5