Bug 28891: (bug 23916 follow up) Always use 'Checkout on' as default Checkout history sort column

To test:
1 - Unset RecordStaffUserOnCheckout
2 - Check out an item
3 - Display Checkout history, table is sorted by 'Checkout on' column
4 - Set RecordStaffUserOnCheckout
5 - Display Checkout history, table is sorted by 'Renewed' column
6 - Apply patch
7 - Redo 1, 3, 4 and 5, table is always sorted by 'Checkout on'

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Didier Gautheron 2021-08-23 15:19:03 +02:00 committed by Kyle M Hall
parent f340e17a5e
commit 3157940f86

View file

@ -138,7 +138,11 @@
[% END %]
var table = KohaTable("table_issues", {
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
[% IF Koha.Preference('RecordStaffUserOnCheckout') %]
"aaSorting": [[ 5, "desc" ]],
[% ELSE %]
"aaSorting": [[ 4, "desc" ]],
[% END %]
"sPaginationType": "full_numbers"
}, columns_settings);
});