From a88c2832b99d18efaced64e2a6b2658a11cd205a Mon Sep 17 00:00:00 2001 From: Agustin Moyano Date: Mon, 6 May 2019 23:11:09 -0300 Subject: [PATCH] Bug 18930: (follow-up) Amend Koha::RefundLostItemFeeRules->find parameters in smart-rules.pl --- admin/smart-rules.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index 1b03aed187..e854f53001 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -539,7 +539,8 @@ elsif ( $op eq 'mod-refund-lost-item-fee-rule' ) { } } -my $refundLostItemFeeRule = Koha::RefundLostItemFeeRules->find({ branchcode => $branch }); +my $refundLostItemFeeRule = Koha::RefundLostItemFeeRules->find({ branchcode => ($branch eq '*') ? undef:$branch, rule_name => 'refund' }); + $template->param( refundLostItemFeeRule => $refundLostItemFeeRule, defaultRefundRule => Koha::RefundLostItemFeeRules->_default_rule -- 2.11.0