From fb33a293950604a309dd76299f1fae7273d826c5 Mon Sep 17 00:00:00 2001 From: Andrew Fuerste-Henry Date: Wed, 9 Dec 2020 13:54:05 +0000 Subject: [PATCH] Bug 27177: Fix failing t/db_dependent/api/v1/holds.t To test: 1 - prove t/db_dependent/api/v1/holds.t 2 - it fails! 3 - apply patch, restart 4- prove t/db_dependent/api/v1/holds.t 5 - it passes! --- Koha/REST/V1/Holds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/V1/Holds.pm b/Koha/REST/V1/Holds.pm index 678dca59b5..a96b84dd00 100644 --- a/Koha/REST/V1/Holds.pm +++ b/Koha/REST/V1/Holds.pm @@ -417,7 +417,7 @@ sub pickup_locations { my @pickup_locations = $hold->itemnumber ? @{ $hold->item->pickup_locations( { patron => $hold->patron } )->as_list() } - : @{ $hold->biblio->pickup_locations( { patron => $hold->patron } ) }; + : @{ $hold->biblio->pickup_locations( { patron => $hold->patron } )->as_list() }; @pickup_locations = map { $_->to_api } @pickup_locations; -- 2.11.0