From 6cbacc5761b2077ed85665ec42d2a5da972c8fdc 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 --- Koha/Patrons/Import.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Patrons/Import.pm b/Koha/Patrons/Import.pm index 6bd7e3d6483..96ab01e3324 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.25.1