[Koha-bugs] [Bug 28699] Noisy warns in checkauth when patron has no firstname

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 16 08:25:42 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28699

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #122758|0                           |1
        is obsolete|                            |

--- Comment #4 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 122865
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122865&action=edit
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

Signed-off-by: David Nind <david at davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
[EDIT] Replaced || by //, since we talk here about uninitialized.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list