View | Details | Raw Unified | Return to bug 19936
Collapse All | Expand All

(-)a/Koha/Patrons/Import.pm (-7 / +10 lines)
Lines 200-212 sub import_patrons { Link Here
200
            next;
200
            next;
201
        }
201
        }
202
202
203
203
        # Check if the userid provided does not exist yet
204
        # Check if the userid provided does not exist yet
204
        if ( defined($matchpoint) and $matchpoint ne 'userid' and exists $borrower{userid}
205
        if (    defined($matchpoint)
205
                 and $borrower{userid}
206
            and $matchpoint ne 'userid'
206
             and ( $patron and not $patron->userid($borrower{userid})->has_valid_userid ) ) {
207
            and exists $borrower{userid}
207
             push @errors, { duplicate_userid => 1, userid => $borrower{userid} };
208
            and $borrower{userid}
208
             $invalid++;
209
            and not Koha::Patron->new( { userid => $borrower{userid} } )->has_valid_userid
209
             next LINE;
210
        ) {
211
            push @errors, { duplicate_userid => 1, userid => $borrower{userid} };
212
            $invalid++;
213
            next LINE;
210
        }
214
        }
211
215
212
        if ($borrowernumber) {
216
        if ($borrowernumber) {
213
- 

Return to bug 19936