From 32dd0e143dd96c0f93be5f6f595c564ef3dbb8f7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Dec 2021 13:00:30 +0100 Subject: [PATCH] Bug 29648: Overdue list - normal 'stateSave' so need to test on the first try or delete the relevant local storage entry 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/circ/overdue.tt | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index aa6b920fc1..cf4b85e934 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1386,6 +1386,8 @@ modules: overdues: circ-overdues: + default_display_length: 20 + default_sort_order: 0 columns: - columnname: due_date diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt index afe0b09f72..3271a6e028 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt @@ -297,13 +297,12 @@ } $(document).ready(function(){ - var columns_settings = [% TablesSettings.GetColumns( 'circ', 'overdues', 'circ-overdues', 'json' ) | $raw %]; + var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'overdues', 'circ-overdues', 'json' ) | $raw %]; KohaTable("overduest", { "sPaginationType": "full", - "aaSorting": [[0, 'asc']], "autoWidth": false, "stateSave": true - }, columns_settings); + }, table_settings); $("#showall").on("change", function(){ update_date_due_filters_visibility(); -- 2.39.5