[Koha-bugs] [Bug 34280] Patrons with no email address produce a warning when saving

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 18 12:57:14 CEST 2023


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

David Nind <david at davidnind.com> changed:

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

--- Comment #2 from David Nind <david at davidnind.com> ---
Created attachment 153587
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153587&action=edit
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 at davidnind.com>

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


More information about the Koha-bugs mailing list