From 8e3e7179db0358de174a01a583dcbed084938823 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 27 Nov 2018 19:25:09 +0000 Subject: [PATCH] Bug 21399: Sort patron fines in OPAC by date descending as a default This patch modifies the DataTables configuration of the logged-in user's "Fines and charges" table in the OPAC so that the table is sorted by date, descending. To test, apply the patch and log in to the OPAC as a user with multiple fines. Go to the "your fines" page and confirm that the table is sorted by default on the first column with the newest entries first. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt index 205921d..23229a0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt @@ -193,7 +193,8 @@ $( document ).ready(function() { $("#finestable").dataTable($.extend(true, {}, dataTablesDefaults, { "columnDefs": [ { "type": "title-string", "targets" : [ "title-string" ] } - ] + ], + "order": [[ 0, "desc" ]] } )); $(".paypal").on("click", function() { -- 2.1.4