Bug 13168 - "Today's checkouts" sort improperly because issuedate lacks seconds.
TO REPLICATE: Prepare a bunch of Items (6+) for checking out, or have a set of barcodes ready for copy-pasting. Check-out those items quickly within one minute and observe that the sorting order is not always from the first checkout to the last. This is because the issuedate doesn't have seconds defined. AFTER THIS The bunch of Items is sorted properly. Tiny patch, works as expected. Passed QA script. Signed-off-by: Marc Veron <veron@veron.ch> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
parent
f5a69334b6
commit
a2887ac9cf
|
|
@ -1258,9 +1258,10 @@ sub AddIssue {
|
|||
$sth->execute(
|
||||
$borrower->{'borrowernumber'}, # borrowernumber
|
||||
$item->{'itemnumber'}, # itemnumber
|
||||
$issuedate->strftime('%Y-%m-%d %H:%M:00'), # issuedate
|
||||
$datedue->strftime('%Y-%m-%d %H:%M:00'), # date_due
|
||||
C4::Context->userenv->{'branch'} # branchcode
|
||||
$issuedate->strftime('%Y-%m-%d %H:%M:%S'), # issuedate
|
||||
$datedue->strftime('%Y-%m-%d %H:%M:%S'), # date_due
|
||||
C4::Context->userenv->{'branch'}, # branchcode
|
||||
$auto_renew ? 1 : 0 # automatic renewal
|
||||
);
|
||||
if ( C4::Context->preference('ReturnToShelvingCart') ) { ## ReturnToShelvingCart is on, anything issued should be taken off the cart.
|
||||
CartToShelf( $item->{'itemnumber'} );
|
||||
|
|
|
|||
Loading…
Reference in New Issue