From 9e8cadcd4d1bf476f95d514e3cc6ede8ac5bf114 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Dec 2021 13:05:40 +0100 Subject: [PATCH] Bug 29648: Holds queue - only 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 + .../intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 24504a4e9f..2fa35b1f66 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1235,6 +1235,7 @@ modules: view_holdsqueue: holds-table: + default_sort_order: 3 columns: - columnname: title diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt index 6eeb9f65c6..b0c0933df3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt @@ -298,13 +298,12 @@ }; $('#holdst thead input').on('change keyup keydown', filterColumn); - var columns_settings = [% TablesSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %]; + var table_settings = [% TablesSettings.GetTableSettings('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %]; var holdst = KohaTable("holdst", { - "aaSorting": [[ 3, "asc" ]], "sDom": 'B<"clearfix">t', "bSortCellsTop": true, "bPaginate": false - }, columns_settings); + }, table_settings); }); -- 2.39.5