From a18327d359123aaebbb698b6259d568eddc48647 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 27 Jun 2023 15:00:00 +0000 Subject: [PATCH] Bug 34133: Set default sort on first column (ID) desc Test plan: Before applying patch: * Open incognito at /cgi-bin/koha/ill/ill-requests.pl, * Verify order is by ASC (lowest ID first) * Close incognito Apply patch, then: * Open incognito at /cgi-bin/koha/ill/ill-requests.pl, * Verify order is by DESC (highest ID first) Signed-off-by: Magnus Enger Followed the test plan from Bugzilla, and added it above. Works as advertised. --- koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js index 61ed8aaa45..9419b0fa5d 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -192,6 +192,7 @@ $(document).ready(function() { 'id_prefix', 'patron' ], + "order": [[0, 'desc']], "stateSave": true, // remember state on page reload "columns": [ { -- 2.34.1