]> git.koha-community.org Git - koha.git/commit
Bug 19750: Overdues without a fine rule add warnings to log
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 5 Dec 2017 15:23:45 +0000 (10:23 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 16 Feb 2018 00:29:35 +0000 (00:29 +0000)
commitfc53d0d98209baa62629b9817595994c67e00854
treee5761e02ddedf37ef2727b0cca196096fe36340d
parent08772bdfd05d868d8e4b740786fd81f8e5369db0
Bug 19750: Overdues without a fine rule add warnings to log

When running fines.pl, any overdue items that have no corresponding circulation rule will generate the following warning:

Use of uninitialized value $amount in numeric gt (>) at /usr/share/koha/bin/cronjobs/fines.pl line 133.

Test Plan:
1) Create a single circ rule
2) Backdate a checkout so it is overdue
3) Delete the circ rule
4) Run fines.pl, note the warning
5) Apply this patch
6) Run fines.pl, note the warning is gone

Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/cronjobs/fines.pl