From b640dccff525a645b0860434f3c2719627813e16 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Mon, 10 Oct 2022 16:33:15 +0200 Subject: [PATCH] Bug 31735: Match rules on effective item type instead of itype --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 34a6f94769..e527b68032 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2564,7 +2564,7 @@ sub _calculate_new_debar_dt { my $circcontrol = C4::Context->preference('CircControl'); my $issuing_rule = Koha::CirculationRules->get_effective_rules( { categorycode => $patron->categorycode, - itemtype => $item->{itype}, + itemtype => $item->effective_itemtype, branchcode => $branchcode, rules => [ 'finedays', -- 2.35.1