Bug 7060 Followup: AddReturn needs GetMemberDetails
authorIan Walls <ian.walls@bywatersolutions.com>
Fri, 21 Oct 2011 14:49:58 +0000 (10:49 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 21 Oct 2011 15:07:37 +0000 (04:07 +1300)
In my haste, I overlooked circ/returns.pl's need for borrower flags.  This patch
changes back the call in AddReturn from GetMember to GetMemberDetails

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Circulation.pm

index c43385a..9f81773 100644 (file)
@@ -1525,7 +1525,7 @@ sub AddReturn {
     my $issue  = GetItemIssue($itemnumber);
 #   warn Dumper($iteminformation);
     if ($issue and $issue->{borrowernumber}) {
-        $borrower = C4::Members::GetMember( borrowernumber => $issue->{borrowernumber})
+        $borrower = C4::Members::GetMemberDetails($issue->{borrowernumber})
             or die "Data inconsistency: barcode $barcode (itemnumber:$itemnumber) claims to be issued to non-existant borrowernumber '$issue->{borrowernumber}'\n"
                 . Dumper($issue) . "\n";
     } else {