Browse Source

Bug 19936: Replace Check_userid - Update the occurrences

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Jonathan Druart 6 years ago
parent
commit
c252ab6a87
  1. 16
      Koha/Patrons/Import.pm

16
Koha/Patrons/Import.pm

@ -200,13 +200,17 @@ sub import_patrons {
next;
}
# Check if the userid provided does not exist yet
if ( defined($matchpoint) and $matchpoint ne 'userid' and exists $borrower{userid}
and $borrower{userid}
and ( $patron and not $patron->userid($borrower{userid})->has_valid_userid ) ) {
push @errors, { duplicate_userid => 1, userid => $borrower{userid} };
$invalid++;
next LINE;
if ( defined($matchpoint)
and $matchpoint ne 'userid'
and exists $borrower{userid}
and $borrower{userid}
and not Koha::Patron->new( { userid => $borrower{userid} } )->has_valid_userid
) {
push @errors, { duplicate_userid => 1, userid => $borrower{userid} };
$invalid++;
next LINE;
}
if ($borrowernumber) {

Loading…
Cancel
Save