Bugzilla – Attachment 67195 Details for
Bug 19338
Dates sorting incorrectly in opac-account.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19338 - Dates sorting incorrectly in opac-account.tt
Bug-19338---Dates-sorting-incorrectly-in-opac-acco.patch (text/plain), 2.51 KB, created by
Liz Rea
on 2017-09-19 03:44:24 UTC
(
hide
)
Description:
Bug 19338 - Dates sorting incorrectly in opac-account.tt
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2017-09-19 03:44:24 UTC
Size:
2.51 KB
patch
obsolete
>From 83912a8e6a86290ddfda8c7b9007d0640ae2e365 Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Tue, 19 Sep 2017 15:29:22 +1200 >Subject: [PATCH] Bug 19338 - Dates sorting incorrectly in opac-account.tt > >To test: >Find an account with lots of fines/payments >load up the borrower's account in the OPAC >note that the sort on the dates sorts by day, and not by date. >apply this patch >reload the page, note that the sort on the dates is now correct. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >index 9c5ffad..795203a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >@@ -71,7 +71,7 @@ > <thead> > <tr> > [% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %] >- <th>Date</th> >+ <th class="title-string">Date</th> > <th>Description</th> > <th>Fine amount</th> > <th>Amount outstanding</th> >@@ -102,7 +102,7 @@ > [% END %] > </td> > [% END %] >- <td>[% ACCOUNT_LINE.date | $KohaDates %]</td> >+ <td><span title="[% account.date %]">[% ACCOUNT_LINE.date | $KohaDates %]</td> > <td> > [% SWITCH ACCOUNT_LINE.accounttype %] > [% CASE 'Pay' %]Payment, thanks >@@ -181,7 +181,11 @@ > <script type="text/javascript"> > $( document ).ready(function() { > >- $("#finestable").dataTable($.extend(true, {}, dataTablesDefaults )); >+ $("#finestable").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "sType": "title-string", "aTargets" : [ "title-string" ] } >+ ] >+ } )); > > $(".paypal").on("click", function() { > window.open('https://www.paypal.com/webapps/mpp/paypal-popup','WIPaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=1060, height=700'); >-- >2.7.4
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 19338
:
67195
|
67196
|
67582
|
67801
|
70154