From a27d45afc588e6d32114e0f198edb9519752c34d Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 13 Nov 2020 13:15:29 +0000 Subject: [PATCH] Bug 26988: Adjust for bug 26963 Signed-off-by: Jonathan Druart (cherry picked from commit 91e21d3a95520f19fa3632d87f2c8f32b11ea1eb) Signed-off-by: Andrew Fuerste-Henry --- 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 c32c2f8359..678dca59b5 100644 --- a/Koha/REST/V1/Holds.pm +++ b/Koha/REST/V1/Holds.pm @@ -416,7 +416,7 @@ sub pickup_locations { return try { my @pickup_locations = $hold->itemnumber - ? @{ $hold->item->pickup_locations( { patron => $hold->patron } ) } + ? @{ $hold->item->pickup_locations( { patron => $hold->patron } )->as_list() } : @{ $hold->biblio->pickup_locations( { patron => $hold->patron } ) }; @pickup_locations = map { $_->to_api } @pickup_locations; -- 2.39.5