Bug 15344: Remove one occurrence in circ/circulation.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 31 Dec 2015 11:43:54 +0000 (11:43 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 4 Jan 2016 15:47:04 +0000 (15:47 +0000)
In C4::Circulation::CanBookBeIssued, $borrower->{flags} is called and
should be populated by GetMemberDetails

It fixes the following error on checking out:
Can't use string ("1900156") as a HASH ref while "strict refs" in use at
/home/koha/src/C4/Circulation.pm line 813.

Note: Error occurs with patrons with staff permissions, not with 'normal' patrons.
Error is fixed with this patch.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
circ/circulation.pl

index ab2b088..5747fbf 100755 (executable)
@@ -270,7 +270,7 @@ if ($findborrower) {
 
 # get the borrower information.....
 if ($borrowernumber) {
-    $borrower = C4::Members::GetMember( borrowernumber => $borrowernumber );
+    $borrower = GetMemberDetails( $borrowernumber, 0 );
     my ( $od, $issue, $fines ) = GetMemberIssuesAndFines( $borrowernumber );
 
     # Warningdate is the date that the warning starts appearing