@@ -, +, @@ userid also matches -- -- --- Koha/Patrons/Import.pm | 1 + 1 file changed, 1 insertion(+) --- a/Koha/Patrons/Import.pm +++ a/Koha/Patrons/Import.pm @@ -207,6 +207,7 @@ sub import_patrons { and exists $borrower{userid} and $borrower{userid} and not Koha::Patron->new( { userid => $borrower{userid} } )->has_valid_userid + and ( (!$borrowernumber) || (Koha::Patrons->find($borrowernumber)->userid ne $borrower{userid}) ) ) { push @errors, { duplicate_userid => 1, userid => $borrower{userid} }; $invalid++; --