From 91e21d3a95520f19fa3632d87f2c8f32b11ea1eb 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 --- 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 20f76a13f6..60acb5ad61 100644 --- a/Koha/REST/V1/Holds.pm +++ b/Koha/REST/V1/Holds.pm @@ -418,7 +418,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