Bug 28786: Fix Patrons/Import.t

DBI Exception: DBD::mysql::st execute failed: Data truncated for column 'auth_method' at row 1 at /kohadevbox/koha/Koha/Object.pm line 170

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-04-21 13:51:11 +02:00 committed by Fridolin Somers
parent 4023704463
commit 91b2adfbc8
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ sub import_patrons {
}
$borrower{cardnumber} = undef if $borrower{cardnumber} eq "";
$borrower{auth_method} = undef if $borrower{auth_method} eq "";
# 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);