From 33c825e219b1396d449ef8d870ab9c1bdd71e1c1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Dec 2021 14:02:50 +0100 Subject: [PATCH] Bug 29648: patron list table - normal Signed-off-by: Owen Leonard --- admin/columns_settings.yml | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index afcda4edcfe..efb65dfdac0 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -948,6 +948,8 @@ modules: patron-lists: patron-list-table: + default_display_length: 20 + default_sort_order: 3 columns: - columnname: checkbox diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt index 87d0c73f78d..af946b45274 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt @@ -236,11 +236,10 @@ $(document).ready(function() { $('#patrons_to_add_fieldset').hide(); - var columns_settings_table = [% TablesSettings.GetColumns('members', 'patron-lists', 'patron-list-table', 'json') | $raw %] + var table_settings = [% TablesSettings.GetTableSettings('members', 'patron-lists', 'patron-list-table', 'json') | $raw %] KohaTable('patron-list-table', { - "order": [[ 3, "asc" ]], "sPaginationType": "full" - }, columns_settings_table); + }, table_settings); patron_autocomplete({ patron_container: $("#patrons_to_add"), -- 2.25.1