Bug 13020 - Checkouts table default ordering is incorrect
The checkouts table is no longer keeping "today's checkouts" in the order they were scanned. Test Plan: 1) Create 3 records "Test 1", "Test 2" and "Test 3" each with one item 2) Check out the items to a patron in the order "Test 2", "Test 1", "Test 3". 3) Note the order is incorrect. 4) Apply this patch 5) Refresh the page 6) Note the order is now correct Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Note that the bug already exists before bug 12550. I checked on a 3.14.x branch (without the ajax circ stuff), and the order is the same as with this patch. Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> Conflicts: koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js
This commit is contained in:
parent
6971b7d532
commit
38e69b2956
|
|
@ -138,9 +138,9 @@ $(document).ready(function() {
|
|||
{
|
||||
"mDataProp": function( oObj ) {
|
||||
if ( oObj.issued_today ) {
|
||||
return "0";
|
||||
return "1" + oObj.timestamp;
|
||||
} else {
|
||||
return "100";
|
||||
return "0" + oObj.date_due;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ my $sql = '
|
|||
issuedate,
|
||||
date_due,
|
||||
date_due < now() as date_due_overdue,
|
||||
issues.timestamp,
|
||||
|
||||
biblionumber,
|
||||
biblio.title,
|
||||
|
|
@ -150,6 +151,7 @@ while ( my $c = $sth->fetchrow_hashref() ) {
|
|||
issuedate => $c->{issuedate},
|
||||
date_due => $c->{date_due},
|
||||
date_due_overdue => $c->{date_due_overdue} ? JSON::true : JSON::false,
|
||||
timestamp => $c->{timestamp},
|
||||
renewals_count => $renewals_count,
|
||||
renewals_allowed => $renewals_allowed,
|
||||
renewals_remaining => $renewals_remaining,
|
||||
|
|
|
|||
Loading…
Reference in New Issue