From 984cadc932366c99aff0afa3ec271434b02bbd38 Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Mon, 2 Apr 2012 11:44:52 +0200 Subject: [PATCH] Correct bad link to item in patron modification log The issue and return link aimed at the wrong record --- C4/Circulation.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 6ba3a7e..7a3c057 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1072,7 +1072,7 @@ sub AddIssue { } } - logaction("CIRCULATION", "ISSUE", $borrower->{'borrowernumber'}, $biblio->{'biblionumber'}) + logaction("CIRCULATION", "ISSUE", $borrower->{borrowernumber}, $item->{'itemnumber'}) if C4::Context->preference("IssueLog"); } return ($datedue); # not necessarily the same as when it came in! @@ -1657,7 +1657,7 @@ sub AddReturn { }); } - logaction("CIRCULATION", "RETURN", $borrowernumber, $item->{'biblionumber'}) + logaction("CIRCULATION", "RETURN", $borrowernumber, $item->{'itemnumber'}) if C4::Context->preference("ReturnLog"); # FIXME: make this comment intelligible. -- 1.7.2.5