Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
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) {