From 7c9bef2787bcf69d8866553d69c594f04550f998 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 24 Jan 2020 14:54:45 +0100 Subject: [PATCH] Bug 18936: (follow-up 2) Add foreign key and scope enhancement to circ rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous patch modifies: - categorycode => undef, - itemtype => undef, - branchcode => $branch, + branchcode => undef, But in that condition $branchcode is not '*' and so we should not set it to undef Signed-off-by: Minna Kivinen Signed-off-by: Joonas Kylmälä --- admin/smart-rules.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index 112efeb2ca..4d4ec5a6b3 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -555,7 +555,7 @@ elsif ( $op eq 'mod-refund-lost-item-fee-rule' ) { } else { Koha::CirculationRules->set_rules( { - branchcode => undef, + branchcode => $branch, rules => { refund => $refund } -- 2.11.0