Bug 24259: Handle non existing default circ rule in Charges::Fees
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 18 Dec 2019 09:50:43 +0000 (10:50 +0100)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 3 Jan 2020 22:23:32 +0000 (22:23 +0000)
commit3d9e1e4603a1371d44868c42f4b7a29c58b5c20f
tree056489a04311c026339198c85e7e66497de57562
parentf74f76169cf849b0155bf395a930f71649a0a749
Bug 24259: Handle non existing default circ rule in Charges::Fees

Can't call method "lengthunit" on an undefined value at
/usr/share/koha/lib/Koha/Charges/Fees.pm line 101.

Test plan:
1 - Remove all/all rule form circulation rules
2 - Define a rental fee per day for an itemtype
3 - Checkout an item of this type ot patron
4 - Should get note of no circ rule defined
5 - Confirm the checkout
=> item is checked out

Signed-off-by: hc <hc@interleaf.ie>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
Koha/Charges/Fees.pm