Bugzilla – Attachment 90982 Details for
Bug 23199
Koha::Patron->store and uppercasesurname syspref
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23199: Koha::Patron->store must check 'uppercasesurname' syspref
Bug-23199-KohaPatron-store-must-check-uppercasesur.patch (text/plain), 1.07 KB, created by
Arthur Suzuki
on 2019-06-25 09:33:11 UTC
(
hide
)
Description:
Bug 23199: Koha::Patron->store must check 'uppercasesurname' syspref
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2019-06-25 09:33:11 UTC
Size:
1.07 KB
patch
obsolete
>From d24b02eef0742034b57776caefc8561e529599bf Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >Date: Tue, 25 Jun 2019 11:17:24 +0200 >Subject: [PATCH] Bug 23199: Koha::Patron->store must check 'uppercasesurname' > syspref > >Test plan: >1/ set uppercasesurname to 'Do' >2/ register a new patron using the REST API with lowercase surname >3/ verify the surname is not saved in uppercase >4/ apply patch >5/ repeat 2 >6/ verify the surname now is saved to uppercase >--- > Koha/Patron.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 6a25d717c1..30e3d052f9 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -195,6 +195,10 @@ sub store { > > unless ( $self->in_storage ) { #AddMember > >+ # Set surname to uppercase if uppercasesurname is true >+ $self->surname = uc($self->surname) >+ if C4::Context->preference("uppercasesurname"); >+ > # Generate a valid userid/login if needed > $self->generate_userid > if not $self->userid or not $self->has_valid_userid; >-- >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 23199
:
90982
|
90983
|
90996
|
91170
|
91171
|
91172
|
91318
|
91319
|
91320