Fixing syntax error in C4/Circulation.pm
authorChris Cormack <chris@bigballofwax.co.nz>
Tue, 8 Sep 2009 21:32:46 +0000 (09:32 +1200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:44 +0000 (23:19 +0200)
C4/Circulation.pm

index bfbb622..c260c1e 100644 (file)
@@ -1955,12 +1955,15 @@ from the book's item type.
 =cut
 
 sub AddRenewal {
+    
     my $borrowernumber  = shift or return undef;
     my $itemnumber      = shift or return undef;
+    my $item   = GetItem($itemnumber) or return undef;
     my $branch  = (@_) ? shift : $item->{homebranch};  # opac-renew doesn't send branch
     my $datedue         = shift;
     my $lastreneweddate = shift || C4::Dates->new()->output('iso');
-    my $item   = GetItem($itemnumber) or return undef;
+
+
     my $biblio = GetBiblioFromItemNumber($itemnumber) or return undef;
 
     # If the due date wasn't specified, calculate it by adding the