From e2506598c87f5efd0205b68e3b2d83a6673bbf09 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Fri, 28 Aug 2026 09:19:22 +0200 Subject: [PATCH] Bug 32748: (QA follow-up) Fix branchcode filtering on itemtypes Signed-off-by: Lisette Scheer Signed-off-by: Pedro Amorim --- Koha/UI/Form/Builder/Item.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/UI/Form/Builder/Item.pm b/Koha/UI/Form/Builder/Item.pm index 35b5019398..335eece227 100644 --- a/Koha/UI/Form/Builder/Item.pm +++ b/Koha/UI/Form/Builder/Item.pm @@ -206,7 +206,9 @@ sub generate_subfield_form { my $all_itemtypes = Koha::ItemTypes->search_with_localization; my $filtered_itemtypes; if ($branch_limit) { - $filtered_itemtypes = Koha::ItemTypes->search_with_localization( { branchcode => $branch_limit } ); + $filtered_itemtypes = + Koha::ItemTypes->search_with_library_limits( {}, {}, $branch_limit ) + ->order_by_translated_description; } else { $filtered_itemtypes = $all_itemtypes; }