From 35e8dcec2039c370193ee6ff64b12aedf4759c67 Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Mon, 23 Aug 2021 15:19:03 +0200 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 3157940f867d571931d7ecac875a41c73e862e88) Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt index 26220fee75..f69f703910 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt @@ -127,7 +127,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); }); -- 2.39.5