From: Mason James Date: Sun, 15 Mar 2009 05:52:35 +0000 (+1300) Subject: fixes error below... X-Git-Tag: v3.00.02-stable~243 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=b1939a08a03abb0931b9720890aa4292f283d1dc;p=koha.git fixes error below... bookcount.pl: Illegal Date 'Item has no branch transfers record' does not match 'iso' format: yyyy-mm-dd at /home/mason/git/kap-k3-2/circ/bookcount.pl line 88 tested on 3.0.x Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- diff --git a/circ/bookcount.pl b/circ/bookcount.pl index eeeff4173d..9965611802 100755 --- a/circ/bookcount.pl +++ b/circ/bookcount.pl @@ -23,6 +23,7 @@ use strict; use CGI; +use C4::Debug; use C4::Context; use C4::Circulation; use C4::Output; @@ -49,7 +50,7 @@ my ( $lastmove, $message ) = lastmove($itm); my $lastdate; my $count; if ( not $lastmove ) { - $lastdate = $message; +# $lastdate = $message; $count = issuessince( $itm, 0 ); } else { @@ -81,6 +82,8 @@ foreach my $branchcode ( keys %$branches ) { push( @branchloop, \%linebranch ); } +### $lastdate + $template->param( biblionumber => $biblionumber, title => $data->{'title'}, @@ -89,7 +92,7 @@ $template->param( biblioitemnumber => $bi, homebranch => $homebranch, holdingbranch => $holdingbranch, - lastdate => format_date($lastdate), + lastdate => $lastdate ? format_date($lastdate) : $message, count => $count, branchloop => \@branchloop, );