Bugzilla – Attachment 187227 Details for
Bug 38122
Cannot sort holdings table by status
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38122: (follow-up) Fix grouping of holdings by status when sorting
Bug-38122-follow-up-Fix-grouping-of-holdings-by-st.patch (text/plain), 1.40 KB, created by
Hammat wele
on 2025-10-01 23:57:07 UTC
(
hide
)
Description:
Bug 38122: (follow-up) Fix grouping of holdings by status when sorting
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2025-10-01 23:57:07 UTC
Size:
1.40 KB
patch
obsolete
>From 4c83967aa6c718f6ef3319db3ffad5719598e845 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Wed, 1 Oct 2025 23:56:06 +0000 >Subject: [PATCH] Bug 38122: (follow-up) Fix grouping of holdings by status > when sorting >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >When 'Group by status' is enabled, sorting on other columns is ignored to ensure that items remain correctly grouped by status. > >To test: > >1. Apply the patch >2. Run yarn build >3. Create a record with multiple itemss having different statuses. >4. Click on «Group by status» button > ---> items are grouped by status >5. Sort on other colunms > ---> items are still grouped by status >6. Click on «Ungroup by status» button > ---> items are no more grouped by status >--- > Koha/REST/V1/Biblios.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/REST/V1/Biblios.pm b/Koha/REST/V1/Biblios.pm >index cb3052b2ea8..718d3287c65 100644 >--- a/Koha/REST/V1/Biblios.pm >+++ b/Koha/REST/V1/Biblios.pm >@@ -265,6 +265,7 @@ sub get_items { > $items_rs = $items_rs->filter_by_bookable if $bookable_only; > > if ($group_by_status) { >+ $c->req->params->remove('_order_by'); > my @item_ids; > for my $status ( > qw( available checked_out local_use in_transit lost withdrawn damaged not_for_loan on_hold recalled in_bundle restricted ) >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38122
:
183789
|
184550
| 187227 |
187410