From a2c7779b91e14015e44bcc1d1d2758a3b4d3aab7 Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Fri, 21 Oct 2011 10:49:58 -0400 Subject: [PATCH] Bug 7060 Followup: AddReturn needs GetMemberDetails 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 (cherry picked from commit c5bc35b6945a03e27dd369d368be33d97f76e509) Signed-off-by: Chris Nighswonger --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index e6d827ea71..f739e70e43 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1523,7 +1523,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 { -- 2.39.5