Bug 23077: Don't fill cardnumber with empty string
[koha.git] / Koha / Patrons / Import.pm
index fe63b95..d98e44d 100644 (file)
@@ -132,6 +132,7 @@ sub import_patrons {
                 }
             }
         }
+        $borrower{cardnumber} = undef unless $borrower{cardnumber};
 
         # Check if borrower category code exists and if it matches to a known category. Pushing error to missing_criticals otherwise.
         $self->check_borrower_category($borrower{categorycode}, $borrowerline, $line_number, \@missing_criticals);