From 9a69c025451859776b9d4fd747ccb7705c806597 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 --- .../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 23551deb63..f7790e7c4d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt @@ -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); }); -- 2.39.5