Bugzilla – Attachment 122745 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.51 KB, created by
Nick Clemens (kidclamp)
on 2021-07-09 13:28:38 UTC
(
hide
)
Description:
Bug 28699: Allow for blank firstname in checkauth
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-07-09 13:28:38 UTC
Size:
1.51 KB
patch
obsolete
>From 4d00fb3a9ad23a1bc50e2eef50762a1c3b94e03b 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 > >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 >--- > C4/Auth.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 9fb674ea59..27b4ca144b 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