Bug 40337: Do not set checkprevcheckout to an empty string when importing patrons

We must remove it so that it will be set as the default value defined
at the DBMS level

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 5b797b2560)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-07-10 21:55:41 +02:00 committed by Paul Derscheid
parent b78ca44451
commit 9895e224df
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 4 additions and 1 deletions

View File

@ -267,7 +267,10 @@ 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 )) {
for my $field (
qw( privacy privacy_guarantor_fines privacy_guarantor_checkouts anonymized login_attempts checkprevcheckout)
)
{
delete $borrower{$field}
if exists $borrower{$field} and $borrower{$field} eq "";
}