From 4091f6e0d6dd460aa534efe7bdc26310cd15a454 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Wed, 26 Jun 2024 08:21:55 +0200 Subject: [PATCH] Bug 8137: (follow-up) fix search params on get_effective_rule --- Koha/CirculationRules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/CirculationRules.pm b/Koha/CirculationRules.pm index 48e8b70b197..03df0a51e73 100644 --- a/Koha/CirculationRules.pm +++ b/Koha/CirculationRules.pm @@ -276,7 +276,7 @@ sub get_effective_rule { $search_params->{categorycode} = defined $categorycode ? [ $categorycode, undef ] : undef; $search_params->{itemtype} = defined $itemtype ? [ $itemtype, undef ] : undef; $search_params->{branchcode} = defined $branchcode ? [ $branchcode, undef ] : undef; - $search_params->{has_priority} = defined $has_priority ? [ $has_priority, undef ] : undef; + $search_params->{has_priority} = defined $has_priority ? $has_priority : 0; my $rule = $self->search( $search_params, -- 2.30.2