From dd6333d529182bc2d00bbdc648d88aa56bc6c170 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 11 Jun 2021 13:42:00 +0200 Subject: [PATCH] Bug 28554: In itemsearch sort item types filter by description In itemsearch form, the item types filter should be sorted by description. Test plan : 1) Create several values and descriptions in item types 2) Go to itemsearch 3) See filter by item types sorts on description and not on value Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- catalogue/itemsearch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl index 9de6fc601f..78900429f2 100755 --- a/catalogue/itemsearch.pl +++ b/catalogue/itemsearch.pl @@ -261,7 +261,7 @@ if ( defined $format ) { my @branches = map { value => $_->branchcode, label => $_->branchname }, Koha::Libraries->search( {}, { order_by => 'branchname' } ); my @itemtypes; -foreach my $itemtype ( Koha::ItemTypes->search ) { +foreach my $itemtype ( Koha::ItemTypes->search_with_localization ) { push @itemtypes, { value => $itemtype->itemtype, label => $itemtype->translated_description, -- 2.39.5