From de4b2a4a4d382f5aa7b17a9bbce67f8426009c70 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 23 Jan 2020 16:16:12 +0100 Subject: [PATCH] Bug 18936: Replace '*' with undef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No test was provided initially so considering out of the scope for this one as well, but that's lacking terribly! Signed-off-by: Minna Kivinen Signed-off-by: Joonas Kylmälä --- Koha/CirculationRules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/CirculationRules.pm b/Koha/CirculationRules.pm index 7f1074c90e..ce1810ae36 100644 --- a/Koha/CirculationRules.pm +++ b/Koha/CirculationRules.pm @@ -425,7 +425,7 @@ sub article_requestable_rules { return if !C4::Context->preference('ArticleRequests'); return $class->search({ - $category ? ( categorycode => [ $category, '*' ] ) : (), + $category ? ( categorycode => [ $category, undef ] ) : (), rule_name => 'article_requests', rule_value => { '!=' => 'no' }, }); -- 2.11.0