From 5c1b47b9a6299fd7126fa47eba36ae8691c63488 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 28 Jan 2025 11:45:49 +0100
Subject: [PATCH] Bug 38984: Specific - tools/batch_extend_due_dates.tt

Why no sort on item type? Why no sort on #checkouts_result?

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
---
 .../en/modules/tools/batch_extend_due_dates.tt     | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt
index e4188a8edc8..2d2a12e6de5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt
@@ -167,10 +167,10 @@
                     <table id="checkouts">
                         <thead>
                             <tr>
-                                <th>&nbsp;</th>
+                                <th class="NoSort">&nbsp;</th>
                                 <th>Due date</th>
                                 <th>Title</th>
-                                <th>Item type</th>
+                                <th class="NoSort">Item type</th>
                                 <th>Home library</th>
                                 <th>Checked out on</th>
                                 <th>Checked out from</th>
@@ -268,20 +268,14 @@
             $("#selectall").click();
 
             $("#checkouts").kohaTable({
-                columnDefs: [
-                    { targets: [0, 3], orderable: false, searchable: false },
-                    { targets: [1], type: "num-html" },
-                ],
+                columnDefs: [{ targets: [1], type: "num-html" }],
                 dom: "t",
                 order: [],
                 paginate: false,
             });
 
             $("#checkouts_result").kohaTable({
-                columnDefs: [
-                    { targets: [0, 3], orderable: false, searchable: false },
-                    { targets: [1], type: "num-html" },
-                ],
+                columnDefs: [{ targets: [1], type: "num-html" }],
                 dom: "t",
                 order: [],
                 paginate: false,
-- 
2.39.5