]> git.koha-community.org Git - koha.git/commit
Bug 34280: Fix warning in logs when saving patron details
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Fri, 14 Jul 2023 14:11:28 +0000 (14:11 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 8 Aug 2023 06:05:46 +0000 (20:05 -1000)
commitddee9f9c52d948aea71f0ea3a3bc9c22c00fcdf7
treeafa7a63e7fc098f1495602e3cf3e0996873000b8
parent5fcaf0aa09bbc76a6b010e9e93a6696308bea9a6
Bug 34280: Fix warning in logs when saving patron details

If a patron has no valid email address then a warning message appears in the logs when saving:

"Use of uninitialized value $email in string ne at /kohadevbox/koha/Koha/Patron.pm line 1445."

This patch fixes that error by removing an unnescessary string ne

Test plan:
1) Create/choose a patron with no email addresses
2) On the patron record in the page section for Contact information, click edit
3) Now click save
4) The warning above should appear in the logs
5) Apply patch
6) Repeat steps 2 and 3
7) The warning should no longer appear

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0cf5dfcbd8c2e5f896f041faff157c7768b468e6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patron.pm