Lines 174-181
sub import_patrons {
Link Here
|
174 |
elsif ($extended) { |
174 |
elsif ($extended) { |
175 |
if ( defined($matchpoint_attr_type) ) { |
175 |
if ( defined($matchpoint_attr_type) ) { |
176 |
foreach my $attr (@$patron_attributes) { |
176 |
foreach my $attr (@$patron_attributes) { |
177 |
if ( $attr->{code} eq $matchpoint and $attr->{value} ne '' ) { |
177 |
if ( $attr->{code} eq $matchpoint and $attr->{attribute} ne '' ) { |
178 |
my @borrowernumbers = $matchpoint_attr_type->get_patrons( $attr->{value} ); |
178 |
my @borrowernumbers = Koha::Patron::Attributes->search( |
|
|
179 |
{ |
180 |
code => $matchpoint_attr_type->code, |
181 |
attribute => $attr->{attribute} |
182 |
} |
183 |
)->get_column('borrowernumber'); |
184 |
|
179 |
$borrowernumber = $borrowernumbers[0] if scalar(@borrowernumbers) == 1; |
185 |
$borrowernumber = $borrowernumbers[0] if scalar(@borrowernumbers) == 1; |
180 |
$patron = Koha::Patrons->find( $borrowernumber ); |
186 |
$patron = Koha::Patrons->find( $borrowernumber ); |
181 |
last; |
187 |
last; |