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:
parent
5024cb3acf
commit
7eb4d3f8a1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue