From b9456d6a2581234440f8ed2127d5b8be0aff79cc Mon Sep 17 00:00:00 2001 From: Andrew Nugged Date: Wed, 3 Aug 2022 22:24:25 +0300 Subject: [PATCH] Bug 20447: (QA follow-up) Fix compatibility to 22.05 Fix to conform with 22.05 Koha::Object's 'search' wantarray removal ( https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29844 ) --- C4/XSLT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 60c1143adf..d96dedb923 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -461,7 +461,7 @@ sub buildKohaHoldingsNamespace { my $shelflocations = { map { $_->{authorised_value} => $_->{opac_description} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => 'HLD', kohafield => 'holdings.location' } ) }; - my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' }); + my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' })->as_list(); my $location = ""; my $ccode = ""; -- 2.37.2