From a548f3952bdd7143329bf668850a22e0b53634a2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 17 Mar 2021 18:27:16 +0000 Subject: [PATCH] Bug 27975: Replace obsolete title-string sorting: Administration templates This patch modifies two administration templates to replace the use of the "title-string" DataTables sorting method with the newer "data-order" attribute. To test, apply the patch and view the following pages to confirm that columns containing dates sort correctly when using any setting of the "dateformat" system preference: - Administration -> Currencies and exchange rates - Administration -> Budgets - Both the "Active budgets" and "Inactive budgets" tabs Signed-off-by: Amit Gupta --- .../prog/en/modules/admin/aqbudgetperiods.tt | 17 ++++++++--------- .../intranet-tmpl/prog/en/modules/admin/currency.tt | 4 ++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt index 092b14d..0468751 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt @@ -426,8 +426,8 @@ Budget name - Start date - End date + Start date + End date Locked Total Actions @@ -437,8 +437,8 @@ [% FOREACH period_active IN period_active_loop %] [% period_active.budget_period_description | html %] - [% period_active.budget_period_startdate | $KohaDates %] - [% period_active.budget_period_enddate | $KohaDates %] + [% period_active.budget_period_startdate | $KohaDates %] + [% period_active.budget_period_enddate | $KohaDates %] [% IF ( period_active.budget_period_locked ) %] Locked @@ -462,8 +462,8 @@ Budget name - Start date - End date + Start date + End date Locked Total Actions @@ -473,8 +473,8 @@ [% FOREACH period_loo IN period_inactive_loop %] [% period_loo.budget_period_description | html %] - [% period_loo.budget_period_startdate | $KohaDates %] - [% period_loo.budget_period_enddate | $KohaDates %] + [% period_loo.budget_period_startdate | $KohaDates %] + [% period_loo.budget_period_enddate | $KohaDates %] [% IF ( period_loo.budget_period_locked ) %] Locked[% END %] [% period_loo.budget_period_total | $Price %] @@ -517,7 +517,6 @@ $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, - { "sType": "title-string", "aTargets" : [ "title-string" ] } ], "sPaginationType": "full", 'bAutoWidth': false diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt index e427c76..75ffae5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -180,7 +180,7 @@ Rate Symbol ISO code - Last updated + Last updated Active Archived Actions @@ -193,7 +193,7 @@ [% currency.rate | html %] [% currency.symbol | html %] [% currency.isocode | html %] - [% currency.timestamp | $KohaDates %] + [% currency.timestamp | $KohaDates %] [% IF currency.active %]✓[% END %] [% IF currency.archived %]Yes[% END %] -- 2.7.4