From 334301543a101d2c5481a8c7c763bdb3fe7d2007 Mon Sep 17 00:00:00 2001
From: David Gustafsson <david.gustafsson@ub.gu.se>
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 b6c1af0e8d..a1f2f74831 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