[Patches] [PATCH] Bug 7060 Followup: AddReturn needs GetMemberDetails

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Fri Nov 4 19:52:39 NZDT 2011


From: Ian Walls <ian.walls at bywatersolutions.com>
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
---
 C4/Circulation.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index c43385a..9f81773 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 {
-- 
1.7.4.1




More information about the Patches mailing list