Bugzilla – Attachment 80847 Details for
Bug 21596
Handle default values when storing Koha::Patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21596: Handle empty string for lost when storing a patron
Bug-21596-Handle-empty-string-for-lost-when-storin.patch (text/plain), 1.00 KB, created by
Martin Renvoize (ashimema)
on 2018-10-18 13:53:10 UTC
(
hide
)
Description:
Bug 21596: Handle empty string for lost when storing a patron
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-10-18 13:53:10 UTC
Size:
1.00 KB
patch
obsolete
>From f4563fd5cfbe93b94880393b6d3deed544062043 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <nick@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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.19.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 21596
:
80804
|
80807
|
80808
|
80809
|
80810
|
80837
|
80838
|
80839
|
80840
|
80844
|
80845
|
80846
| 80847 |
81080
|
81160
|
81537