From f3fa68d7d9e953192851ef0c7a2e28b5a0e81ab9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Dec 2021 12:13:14 +0100 Subject: [PATCH] Bug 29648: Late orders view - 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/acqui/lateorders.tt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index de975bad15..2010b14ccd 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -70,6 +70,8 @@ modules: lateorders: late_orders: + default_display_length: 20 + default_sort_order: 0 columns: - columnname: checkbox diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt index db4a47e767..03862a2261 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -303,7 +303,7 @@ $(document).ready(function() { - var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %]; + var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %]; late_orderst = KohaTable("late_orders", { "sorting": [[ 1, "asc" ]], "sPaginationType": "full", @@ -314,7 +314,7 @@ $('input:checkbox[name=ordernumber]').bind('click', check_uncheck); }; } - }, columns_settings ); + }, table_settings ); $('input:checkbox[name=ordernumber]').bind('click', check_uncheck); $('#CheckAll').click(function(e){ e.preventDefault(); -- 2.39.5