From 7eb4d3f8a1537e1c9eea478f0802b30fae7690db Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Oct 2018 20:02:12 -0300 Subject: [PATCH] Bug 21596: Handle empty string for lost when storing a patron lost - should default to 0 at DB level, not null But let fix it as it for now Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- Koha/Patron.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index fb3f8684a5..74157731e1 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -210,6 +210,7 @@ sub store { $self->gonenoaddress(0) unless $self->gonenoaddress; $self->login_attempts(0) unless $self->login_attempts; $self->privacy_guarantor_checkouts(0) unless $self->privacy_guarantor_checkouts; + $self->lost(0) unless $self->lost; unless ( $self->in_storage ) { #AddMember -- 2.39.5