From 6f595e4c95c22ba444f49c61c9d101483309871f 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 Signed-off-by: Jonathan Druart --- 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.39.5