[Koha-bugs] [Bug 20537] Warnings in overdue_notices.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 6 05:20:12 CET 2019


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

--- Comment #2 from Hayley Mapley <hayleymapley at catalyst.net.nz> ---
Created attachment 86124
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=86124&action=edit
Bug 20537: Added check to remove warning from overdue_notices.pl

When executing overdue_notices.pl on borrowers that lack a surname, we
see this error:
Use of uninitialized value in concatenation (.) or string at
/usr/share/koha/bin/cronjobs/overdue_notices.pl line 575.

This patch fixes this issue by setting the $borr variable
based on the information that has been defined.

To test:
1) Create a borrower and set its surname to null
2) Checkout an item to the borrower and set it to be overdue
3) Navigate to kohaclone/misc/cronjobs and enter a koha-shell
4) Run the script: ./overdue_notices.pl
5) Observe the error appears
6) Apply the patch
7) Repeat steps 3-4
8) Observe the error is gone
9) Sign off!

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


More information about the Koha-bugs mailing list