]> git.koha-community.org Git - koha.git/commit
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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 9 Jan 2020 21:39:29 +0000 (21:39 +0000)
commit85db12d66819b589a8c47ed8333fd3b188423c0f
tree4059f89aa597e15dfd1d3a76d5380a6e8d94e9d6
parent0b84e1e25fafdb06f3dfea05dd1ea4d8f5e41553
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>
(cherry picked from commit 3d9e1e4603a1371d44868c42f4b7a29c58b5c20f)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Charges/Fees.pm