From 7bbe9d0ae2e64a88fc7947ae69b4c7d6bfefbeb7 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 9 Sep 2009 09:32:46 +1200 Subject: [PATCH] Fixing syntax error in C4/Circulation.pm --- C4/Circulation.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index bfbb6221b9..c260c1ef46 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -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 -- 2.39.5