From f1c1cfdb0c7833ffafcefa06dfb3495a289cf1f9 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. Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 67916fc23a518bb1ddc895f6f3e0b27c434b8a92) Signed-off-by: Fridolin Somers --- 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.39.5