Bugzilla – Attachment 122865 Details for
Bug 28699
Noisy warns in checkauth when patron has no firstname
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28699: Allow for blank firstname in checkauth
Bug-28699-Allow-for-blank-firstname-in-checkauth.patch (text/plain), 1.72 KB, created by
Marcel de Rooy
on 2021-07-16 06:25:42 UTC
(
hide
)
Description:
Bug 28699: Allow for blank firstname in checkauth
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-07-16 06:25:42 UTC
Size:
1.72 KB
patch
obsolete
>From c321555616a775fdbe85d468b8b466bac04f36b2 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 9 Jul 2021 13:26:12 +0000 >Subject: [PATCH] Bug 28699: Allow for blank firstname in checkauth >Content-Type: text/plain; charset=utf-8 > >When mapping the fields from the session we should map blank fieds >to blank strings > >To test: >1 - Remove first name from a patron >2 - tail -f /var/log/koha/kohadev/plack-opac-error.log >3 - Login as that patron on the opac >4 - Note warns in the log like: > [2021/07/09 13:22:54] [WARN] Use of uninitialized value in sprintf at /kohadevbox/koha/C4/Auth.pm line 888. >5 - Apply patch >6 - restart_all >7 - Log out and in to opac with user >8 - Note warns above are gone > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >[EDIT] Replaced || by //, since we talk here about uninitialized. >--- > C4/Auth.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 9fb674ea59..437179ce90 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -885,7 +885,7 @@ sub checkauth { > $session->param('desk_id'), $session->param('desk_name'), > $session->param('register_id'), $session->param('register_name') > ); >- Koha::Logger->get->debug(sprintf "AUTH_SESSION: (%s)\t%s %s - %s", map { $session->param($_) } qw(cardnumber firstname surname branch)); >+ Koha::Logger->get->debug(sprintf "AUTH_SESSION: (%s)\t%s %s - %s", map { $session->param($_) // "" } qw(cardnumber firstname surname branch)); > $ip = $session->param('ip'); > $lasttime = $session->param('lasttime'); > $userid = $s_userid; >-- >2.20.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 28699
:
122745
|
122758
| 122865