From ee5cca27dd567210a1ce93f91ea2898ec17602d7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Dec 2021 14:12:39 +0100 Subject: [PATCH] Bug 29648: Upload tool - no sort Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- admin/columns_settings.yml | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index f199beec64..e15bcfcb42 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1750,6 +1750,7 @@ modules: upload: uploadresults: + default_display_length: 20 columns: - columnname: filename diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt index 3127015171..9f6da6ab3c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt @@ -459,14 +459,14 @@ [% END %] window.close(); } - var columns_settings = [% TablesSettings.GetColumns( 'tools', 'upload', 'uploadresults', 'json' ) | $raw %]; + var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'upload', 'uploadresults', 'json' ) | $raw %]; [% IF plugin %] - delete columns_settings[6]; - delete columns_settings[5]; + table_settings['columns'].splice(6, 1); + table_settings['columns'].splice(5, 1); [% END %] $(document).ready(function() { KohaTable("uploadresults",{ - }, columns_settings); + }, table_settings); [% IF msg %] ShowAlerts( [% msg | html %] ); -- 2.39.5