From 9eb7e9cf017a7d9bb0ff2da0abd058962cf0c40d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 21 Apr 2023 13:26:00 +0200 Subject: [PATCH] Bug 24975: to squash - fix search.pl --- catalogue/search.pl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index c64d72dadd8..8013abad794 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -810,11 +810,12 @@ sub prepare_adv_search_types { ( C4::Context->preference("item-level_itypes") ) ? 'itype' : 'itemtype'; # FIXME We should retrieve the ItemTypes from the cache - my $itemtypes = - map { - $_->itemtype => - { %{ $_->unblessed }, description => $_->translated_description, } - } @{ Koha::ItemTypes->search->as_list }; + my $itemtypes = { + map { + $_->itemtype => + { %{ $_->unblessed }, description => $_->translated_description, } + } @{ Koha::ItemTypes->search->as_list } + }; my ( $cnt, @result ); foreach my $advanced_srch_type (@advanced_search_types) { -- 2.25.1