From 24f3369818b05faa507fb41e7bdf5c3f683f7b77 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 5 Feb 2026 13:26:21 -0500 Subject: [PATCH] Bug 41779: Late orders: disable batch controls if no checkboxes are checked This patch adds JavaScript which changes the enabled or disabled state of the batch controls on the late orders page: "Export as CSV" and "Claim order." To test you must have more than one late order. - Apply the patch and go to Acquisitions -> Late orders. - At the bottom of the table of late orders you should see the "Export as CSV" and "Claim order" buttons and they should be disabled. - Try checking and unchecking boxes, and confirm that the controls are enabled and disabled as they should be. - Filter your list of late orders by vendor using the filter form in the sidebar. - Test that the "Check all" and "Uncheck all" controls above the table. The batch controls should be enabled and disabled correctly. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind --- .../prog/en/modules/acqui/lateorders.tt | 44 ++++++++++++------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt index 4fd290a225..761f203dcf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -250,8 +250,8 @@
- Export as CSV - + Export as CSV +
- +
[% ELSE %] @@ -377,37 +377,51 @@