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 <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-10-17 20:02:12 -03:00 committed by Nick Clemens
parent 5024cb3acf
commit 7eb4d3f8a1

View file

@ -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