From 790ee09c576bc1ee5ca218d327220861620386c1 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=utf8 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ä Signed-off-by: Martin Renvoize --- 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.39.5