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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 24 21:54:20 CEST 2019


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

Liz Rea <wizzyrea at gmail.com> changed:

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

--- Comment #9 from Liz Rea <wizzyrea at gmail.com> ---
Created attachment 90085
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90085&action=edit
Bug 20537: Added checks 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!

Sponsored-by: Catalyst IT

Signed-off-by: Liz Rea <wizzyrea at gmail.com>
patch wouldn't apply on current master, so I fixed that. Work is the same.

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


More information about the Koha-bugs mailing list