From b7bf4bd354bbba55a00ddebe166048dc5d33b4e2 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 10 Jan 2020 15:37:46 +0000 Subject: [PATCH] Bug 24350: (follow-up) Unbless each library, not the array Signed-off-by: Martin Renvoize --- Koha/Template/Plugin/Branches.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Template/Plugin/Branches.pm b/Koha/Template/Plugin/Branches.pm index d677ccdcf0..6ee4254402 100644 --- a/Koha/Template/Plugin/Branches.pm +++ b/Koha/Template/Plugin/Branches.pm @@ -90,9 +90,10 @@ sub pickup_locations { my $search_params = $params->{search_params} || {}; my $selected = $params->{selected}; - my $libraries = Koha::Libraries->pickup_locations($search_params)->unblessed; + my $libraries = Koha::Libraries->pickup_locations($search_params); for my $l (@$libraries) { + $l = $l->unblessed; if ( defined $selected and $l->{branchcode} eq $selected or not defined $selected and C4::Context->userenv -- 2.39.5