From e9ed0f2faeb5ca3ee116c4ed78b50fc1756148f4 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Fri, 28 Jun 2024 13:53:10 +0000 Subject: [PATCH] Bug 29087: (QA follow-up): Correct default rule search This patch includes a check that branchcode, categorycode and itemtype are null for the default rule --- Koha/Items.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Koha/Items.pm b/Koha/Items.pm index ff6f80db75..41bba880f1 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -65,6 +65,9 @@ sub filter_by_for_hold { { rule_name => 'holdallowed', rule_value => 'not_allowed', + branchcode => undef, + categorycode => undef, + itemtype => undef, } ); my @hold_not_allowed_itypes; -- 2.39.3 (Apple Git-146)