From 3fd513eaef1eade947c6b1e8a67f74b6a70d9088 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 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/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 3964d64dd7..52b01204a0 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -976,6 +976,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 87d0c73f78..af946b4527 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.39.5