From f1c96a8a1720fee596b3196ee6f07f964e863cf1 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 19 Feb 2020 21:30:22 +0000 Subject: [PATCH] Bug 24670: (QA follow-up) Add missing $rules definition Signed-off-by: Martin Renvoize --- admin/smart-rules.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index 45c566eba1..236ca8f062 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -565,6 +565,7 @@ my $humanbranch = ( $branch ne '*' ? $branch : undef ); my $all_rules = Koha::CirculationRules->search({ branchcode => $humanbranch }); my $definedbranch = $all_rules->count ? 1 : 0; +my $rules = {}; while ( my $r = $all_rules->next ) { $r = $r->unblessed; $rules->{ $r->{categorycode} }->{ $r->{itemtype} }->{ $r->{rule_name} } = $r->{rule_value}; -- 2.20.1