Bugzilla – Attachment 183970 Details for
Bug 40337
checkprevcheckout must be defined as ENUM at DB level
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40337: Do not set checkprevcheckout to an empty string when importing patrons
Bug-40337-Do-not-set-checkprevcheckout-to-an-empty.patch (text/plain), 1.24 KB, created by
Jonathan Druart
on 2025-07-10 19:56:58 UTC
(
hide
)
Description:
Bug 40337: Do not set checkprevcheckout to an empty string when importing patrons
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-10 19:56:58 UTC
Size:
1.24 KB
patch
obsolete
>From a726415e3c4b4725f1f9cb39da86d9484f62617d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 10 Jul 2025 21:55:41 +0200 >Subject: [PATCH] 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 >--- > Koha/Patrons/Import.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/Koha/Patrons/Import.pm b/Koha/Patrons/Import.pm >index 23b6f578031..50c17e0153f 100644 >--- a/Koha/Patrons/Import.pm >+++ b/Koha/Patrons/Import.pm >@@ -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 ""; > } >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40337
:
183918
|
183919
|
183946
|
183947
|
183948
|
183969
| 183970