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 <magnus@libriotech.no>
Followed the test plan from Bugzilla, and added it above.
Works as advertised.
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 67916fc23a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Pedro Amorim 2023-06-27 15:00:00 +00:00 committed by Fridolin Somers
parent 3a5f4d1701
commit f1c1cfdb0c
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ $(document).ready(function() {
'id_prefix',
'patron'
],
"order": [[0, 'desc']],
"stateSave": true, // remember state on page reload
"columns": [
{