BUGFIX renewal
authorpaul <paul.poulain@biblibre.com>
Tue, 1 Apr 2008 14:01:40 +0000 (16:01 +0200)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 7 Apr 2008 20:56:24 +0000 (15:56 -0500)
otherwise, the new issuedate will be empty

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Circulation.pm

index 0add08e..5c14e2b 100644 (file)
@@ -1698,7 +1698,7 @@ sub AddRenewal {
     my $biblio = GetBiblioFromItemNumber($itemnumber);
     # If the due date wasn't specified, calculate it by adding the
     # book's loan length to today's date.
-    unless ( $datedue ) {
+    unless ( $datedue->output('iso') ) {
 
 
         my $borrower = C4::Members::GetMemberDetails( $borrowernumber, 0 );