From 7646ec31ef568d95c20083c5e82f98022e21be4c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 31 Jul 2025 12:54:40 +0200 Subject: [PATCH] Bug 27934: Remove title-string to order by dates We must now use data-order to order dates, not title-string. This patch adjusts the few occurrences that were using it and remove the function from datatables.js to prevent new occurrences. Test plan: Create some recalls, go to the "Recalls to pull" and "Recalls awaiting pickup" pages and confirm that the dates are ordered correctly when you sort by dates. --- .../en/modules/recalls/recalls_to_pull.tt | 5 ++-- .../en/modules/recalls/recalls_waiting.tt | 8 +++--- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 28 ------------------- koha-tmpl/intranet-tmpl/prog/js/recalls.js | 1 - 4 files changed, 6 insertions(+), 36 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt index 9d84e5840cd..dba569bc1df 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt @@ -53,7 +53,7 @@ Available enumeration Available item types Available locations - Earliest recall date + Earliest recall date   @@ -117,7 +117,7 @@ - [% recall.first_recall.created_date | $KohaDates %] in [% recall.first_recall.library.branchname | html %] + [% recall.first_recall.created_date | $KohaDates %] in [% recall.first_recall.library.branchname | html %]
@@ -152,7 +152,6 @@