Bugzilla – Attachment 76907 Details for
Bug 20287
Move AddMember and ModMember to Koha::Patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20287: Remove warning
Bug-20287-Remove-warning.patch (text/plain), 1006 bytes, created by
Jonathan Druart
on 2018-07-12 18:49:32 UTC
(
hide
)
Description:
Bug 20287: Remove warning
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-12 18:49:32 UTC
Size:
1006 bytes
patch
obsolete
>From 2fd4453fe2f4724aa544f9a98a58cbebedc730cc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 22 Feb 2018 15:37:27 -0300 >Subject: [PATCH] Bug 20287: Remove warning > >If there are no patrons in DB: >Use of uninitialized value in addition (+) > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Patron.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 3d2456cc9e..1c245262ba 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -106,7 +106,7 @@ sub fixup_cardnumber { > select => \'CAST(cardnumber AS SIGNED)', > as => ['cast_cardnumber'] > })->_resultset->get_column('cast_cardnumber')->max; >- $self->cardnumber($max+1); >+ $self->cardnumber(($max || 0) +1); > } > > # trim whitespace from data which has some non-whitespace in it. >-- >2.11.0
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 20287
:
73436
|
76901
|
76902
|
76903
|
76904
|
76905
|
76906
| 76907 |
76908
|
76909
|
76910
|
76911
|
76912
|
76913
|
76914
|
76915
|
76916
|
76917
|
76918
|
76919
|
76920
|
76921
|
76922
|
76923
|
76924
|
76927
|
77221