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 <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Fridolin Somers 2021-06-11 13:42:00 +02:00 committed by Jonathan Druart
parent 7baea6631a
commit dd6333d529

View file

@ -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,