@@ -, +, @@ * privacy * privacy_guarantor_fines * privacy_guarantor_checkouts * anonymized - Do not apply the patch - Generated a csv file with at least one those headers - Import it using the import_patrons.pl script (or using the GUI) - Notice the warnings without the patch - Apply the patch - Confirm that the warnings do not longer appear --- Koha/Patrons/Import.pm | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/Koha/Patrons/Import.pm +++ a/Koha/Patrons/Import.pm @@ -222,6 +222,15 @@ sub import_patrons { delete $borrower{relationship}; delete $borrower{guarantor_id}; + # Remove warning for int datatype that cannot be null + # Argument "" isn't numeric in numeric eq (==) at /usr/share/perl5/DBIx/Class/Row.pm line 1018 + for my $field ( + qw( privacy privacy_guarantor_fines privacy_guarantor_checkouts anonymized )) + { + delete $borrower{$field} + if exists $borrower{$field} and $borrower{$field} eq ""; + } + if ($borrowernumber) { # borrower exists --