From d2ac9d9df825f029d7e6010ab1928d0f547c1aeb 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Nazlı Çetin Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- 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 205921dee1..23229a0485 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.39.5