From 91b2adfbc895f332ee6533c517ea0ae34ce68c54 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 21 Apr 2022 13:51:11 +0200 Subject: [PATCH] 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 Signed-off-by: Fridolin Somers --- Koha/Patrons/Import.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Patrons/Import.pm b/Koha/Patrons/Import.pm index 6bd7e3d648..96ab01e332 100644 --- a/Koha/Patrons/Import.pm +++ b/Koha/Patrons/Import.pm @@ -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); -- 2.39.5