From b92a8508ef2e537f9f577f4bdc07bc7a26d36f9d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 6 Jan 2022 09:22:05 -0300 Subject: [PATCH] Bug 29806: Call ->as_list for ->pickup_locations on request.pl Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall (cherry picked from commit 6812dd0b72a0ae8529f6191d15ba68e3707fffc5) Signed-off-by: Andrew Fuerste-Henry --- reserve/request.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reserve/request.pl b/reserve/request.pl index 6079089135..347e8569e8 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -738,7 +738,7 @@ foreach my $biblionumber (@biblionumbers) { if ( $patron ) { # Add the valid pickup locations - my @pickup_locations = $biblio->pickup_locations({ patron => $patron }); + my @pickup_locations = $biblio->pickup_locations({ patron => $patron })->as_list; $biblioloopiter{pickup_locations} = \@pickup_locations; $biblioloopiter{pickup_locations_codes} = [ map { $_->branchcode } @pickup_locations ]; } -- 2.39.5