Bugzilla – Attachment 154571 Details for
Bug 34356
Enabling RecordStaffUserOnCheckout causes bad default sorting in checkout history
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34356: Make sort order always default to correct column
Bug-34356-Make-sort-order-always-default-to-correc.patch (text/plain), 1.71 KB, created by
Lucas Gass (lukeg)
on 2023-08-17 17:27:18 UTC
(
hide
)
Description:
Bug 34356: Make sort order always default to correct column
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-08-17 17:27:18 UTC
Size:
1.71 KB
patch
obsolete
>From e4dc2627c367c1cbad15bc58dec2ab6ed099f9a0 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 17 Aug 2023 17:25:56 +0000 >Subject: [PATCH] Bug 34356: Make sort order always default to correct column > >To test: >1- Check out an item to a patron >2- View checkout history, default sort is on 'Date due' >3- Enable RecordStaffUserOnCheckout >4- View checkout history, default sort is on 'Checked out by' >5- Apply patch >6- Table should sort to 'Date due' no matter what the sys pref is set to >--- > .../intranet-tmpl/prog/en/modules/members/readingrec.tt | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >index ec4c5dfdb9..f93fae1117 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >@@ -174,10 +174,15 @@ > [% Asset.js("js/checkout_renewals_modal.js") | $raw %] > <script id="js"> > $(document).ready(function() { >+ [% IF Koha.Preference('RecordStaffUserOnCheckout') %] >+ var column_sort = 11; >+ [% ELSE %] >+ var column_sort = 10; >+ [% END %] > var table_settings = [% TablesSettings.GetTableSettings('members', 'checkouthistory', 'checkouthistory-table', 'json') | $raw %]; > var table = KohaTable("table_readingrec", { > "sPaginationType": "full", >- "aaSorting": [[10, 'desc']] >+ "aaSorting": [[column_sort, 'desc']] > }, table_settings); > > $("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) { >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34356
:
154571
|
154572
|
154805