From abf92014b7bf486cce62ae7afc59ebc014828176 Mon Sep 17 00:00:00 2001 From: Petro Vashchuk Date: Fri, 6 Aug 2021 14:37:07 +0300 Subject: [PATCH] Bug 25711: add comment to clarify how the method works --- Koha/CirculationRules.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/CirculationRules.pm b/Koha/CirculationRules.pm index fd9ec35329..a05c97691f 100644 --- a/Koha/CirculationRules.pm +++ b/Koha/CirculationRules.pm @@ -602,6 +602,8 @@ sub get_effective_expire_reserves_charge { } ); + # return the rule value (incl. 0) if rule found so there's an object in the variable, + # or return default value from sysprefs when rule wasn't found and there's undef return $expire_reserves_charge_rule ? $expire_reserves_charge_rule->rule_value : C4::Context->preference("ExpireReservesMaxPickUpDelayCharge"); } -- 2.31.1