From 91a41dda87d6736095a284f1699eaad93bd1ef25 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 31 Dec 2015 11:43:54 +0000 Subject: [PATCH] Bug 15344: Remove one occurrence in circ/circulation.pl MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit e2a3b93860740fd498baad35fc8a4dc859527cb9) Signed-off-by: Julian Maurice --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index ab2b088cc7..5747fbf6fd 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -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 -- 2.39.5