From fb963367399670ddd51e4a5800a6432e1b678fee Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Dec 2021 14:00:59 +0100 Subject: [PATCH] Bug 29648: Payments - normal Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- admin/columns_settings.yml | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 9b84b4247a..ce5a10bc68 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -792,6 +792,8 @@ modules: pay: pay-fines-table: + default_display_length: 20 + default_sort_order: 3 columns: - columnname: checkbox diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt index 21044e12ed..c6978f3cfb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -243,12 +243,11 @@ $(".add-note").show(); }); - var columns_settings = [% TablesSettings.GetColumns('members', 'pay', 'pay-fines-table', 'json') | $raw %]; + var table_settings = [% TablesSettings.GetTableSettings('members', 'pay', 'pay-fines-table', 'json') | $raw %]; KohaTable("finest", { "paging": false, - 'sorting': [[ 3, "asc" ]], "autoWidth": false - }, columns_settings ); + }, table_settings ); }); [% END %] -- 2.39.5