circ/circulation.pl: force issuedate to a string to fix bug 8738
authorMJ Ray <mjr@phonecoop.coop>
Fri, 7 Sep 2012 14:17:05 +0000 (15:17 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 5 Oct 2012 15:37:48 +0000 (17:37 +0200)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Installed DataTime version 0.53, verified the error occurs.
Applied patch, verified patch removes the error.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
circ/circulation.pl

index f15d4ce..b051281 100755 (executable)
@@ -466,7 +466,7 @@ sub build_issue_data {
         $it->{'renew_failed'} = $renew_failed{$it->{'itemnumber'}};
         $it->{'return_failed'} = $return_failed{$it->{'barcode'}};
 
-        if ( $it->{'issuedate'} gt $todaysdate or $it->{'lastreneweddate'} gt $todaysdate ) {
+        if ( $it->{'issuedate'}."" gt $todaysdate or $it->{'lastreneweddate'} gt $todaysdate ) {
             (!$relatives) ? push @todaysissues, $it : push @relissues, $it;
         } else {
             (!$relatives) ? push @previousissues, $it : push @relprevissues, $it;