From ccb08d5bc2e536e63c74da2b7106adc2311b7da2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Dec 2021 13:15:09 +0100 Subject: [PATCH] Bug 29648: Patron accounting page - no sort because of desc Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- admin/columns_settings.yml | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 58359fe1b8..9b84b4247a 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -752,6 +752,7 @@ modules: members: fines: account-fines: + default_display_length: 20 columns: - columnname: date diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 4c095259ab..5223997277 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -334,12 +334,12 @@ var txtActivefilter = _("Filter paid transactions"); var txtInactivefilter = _("Show all transactions"); - var columns_settings = [% TablesSettings.GetColumns('members', 'fines', 'account-fines', 'json') | $raw %]; + var table_settings = [% TablesSettings.GetTableSettings('members', 'fines', 'account-fines', 'json') | $raw %]; var table_account_fines = KohaTable("table_account_fines", { "sPaginationType": "full", 'aaSorting': [[0, 'desc']], "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', - }, columns_settings); + }, table_settings); $("#filter_c").html('

'+txtActivefilter+''); $('#filter_transacs').click(function(e) { e.preventDefault(); -- 2.39.5