From c5bc35b6945a03e27dd369d368be33d97f76e509 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 --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index c43385a20d..9f81773ce9 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -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 { -- 2.39.5