From 02053149a0888bb56c8f82946ff5db4788f6e7f6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 22 Aug 2017 13:41:16 -0300 Subject: [PATCH] Bug 17829: (follow-up) Fix import patron --- tools/import_borrowers.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/import_borrowers.pl b/tools/import_borrowers.pl index 4ed4bf609f..d0aa3ebe67 100755 --- a/tools/import_borrowers.pl +++ b/tools/import_borrowers.pl @@ -238,7 +238,7 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { if ( ($matchpoint eq 'cardnumber') && ($borrower{'cardnumber'}) ) { $member = Koha::Patrons->find( { cardnumber => $borrower{'cardnumber'} } ); } elsif ( ($matchpoint eq 'userid') && ($borrower{'userid'}) ) { - $member = Koha::Patrons->find( { userid => $borrower{'userid'} } )->unblessed; + $member = Koha::Patrons->find( { userid => $borrower{'userid'} } ); } elsif ($extended) { if (defined($matchpoint_attr_type)) { foreach my $attr (@$patron_attributes) { -- 2.11.0