Bug 17829: (follow-up) Fix import patron
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 22 Aug 2017 16:41:16 +0000 (13:41 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 22 Aug 2017 16:42:43 +0000 (13:42 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
tools/import_borrowers.pl

index 4ed4bf6..d0aa3eb 100755 (executable)
@@ -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) {