From cd9d18f24d79d51be5db77a934288b0cef5bf175 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 Signed-off-by: Lisette Scheer Signed-off-by: Jonathan Druart 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.39.5