https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35963 --- Comment #1 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 161812 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161812&action=edit Bug 35963: Fix bundled items table ordering and filtering Using the many-to-many relationship results in the table alias `me` to be used for table `item_bundles` instead of the expected table `items`. This causes ordering and filtering to fail for columns Callnumber and Barcode. Using Koha::Items->search does not have this problem. This patch also disables ordering by status because it does not work (error message is: "Cannot find Koha::Object class for return_claim'") Test plan: 1. Create an item bundle https://koha-community.org/manual/23.11/en/html/circulation.html#circulating... 2. Add at least 2 items to this bundle 3. Verify that ordering/filtering by callnumber or barcode works 4. Run `prove t/db_dependent/api/v1/items/bundled_items.t` -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.