diff --git a/Koha/Patrons/Import.pm b/Koha/Patrons/Import.pm index fa3f05fc3c..f36495d76a 100644 --- a/Koha/Patrons/Import.pm +++ b/Koha/Patrons/Import.pm @@ -268,7 +268,7 @@ LINE: while ( my $borrowerline = <$handle> ) { # 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 login_attempts checkprevcheckout) + qw( privacy privacy_guarantor_fines privacy_guarantor_checkouts anonymized login_attempts checkprevcheckout autorenew_checkouts ) ) { delete $borrower{$field} diff --git a/t/db_dependent/Koha/Patrons/Import.t b/t/db_dependent/Koha/Patrons/Import.t index 8949574a79..64e5f95a06 100755 --- a/t/db_dependent/Koha/Patrons/Import.t +++ b/t/db_dependent/Koha/Patrons/Import.t @@ -18,7 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Test::More tests => 180; +use Test::More tests => 181; +use Test::NoWarnings; use Test::Warn; use Test::Exception; use Encode qw( encode_utf8 );