@@ -, +, @@ --- Koha/CirculationRules.pm | 3 +++ 1 file changed, 3 insertions(+) --- a/Koha/CirculationRules.pm +++ a/Koha/CirculationRules.pm @@ -602,6 +602,9 @@ sub get_effective_expire_reserves_charge { } ); + # we return the value of the system preferencein case the circulation rule wasn't found + # (this should be the case when we saved empty field in a form for a circulation rule), + # and when the rule is found, it returns the value of it including 0 return $expire_reserves_charge_rule ? $expire_reserves_charge_rule->rule_value : C4::Context->preference("ExpireReservesMaxPickUpDelayCharge"); } --