From b09e53ec679a1206c233f4438e8aa8c06e06cebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Delaune?= Date: Fri, 4 May 2012 12:13:12 +0200 Subject: [PATCH] Bug 8043: today's checkouts are in Previous checkouts in circulation.pl --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index bcbcb6f..98b371e 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -457,7 +457,7 @@ sub build_issue_data { ($it->{'author'} eq '') and $it->{'author'} = ' '; $it->{'renew_failed'} = $renew_failed{$it->{'itemnumber'}}; - if ( $todaysdate eq $it->{'issuedate'} or $todaysdate eq $it->{'lastreneweddate'} ) { + if ( $todaysdate eq substr($it->{'issuedate'},0,10) or $todaysdate eq substr($it->{'lastreneweddate'},0,10) ) { (!$relatives) ? push @todaysissues, $it : push @relissues, $it; } else { (!$relatives) ? push @previousissues, $it : push @relprevissues, $it; -- 1.7.9.5