From 32bd9aa3e6694bedd0b40e1c38e2d5b362efd50d 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 --- 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.11.0