From 8268bafc5358cda997620682609c9212ac1062ef 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 --- .../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 092b14d439..0468751cd0 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 e427c76f7a..75ffae5d02 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.11.0