From fd7e41718985ef0d49cd0d18472627a0dfe054cf Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 17 Jun 2022 12:24:09 +0100 Subject: [PATCH] Bug 28854: (follow-up) Use Koha::Item->itemtype introduced with bug 20469 Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/Accounts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 84ebbcd225..e5b7c441d8 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -71,7 +71,7 @@ sub chargelostitem { my $dbh = C4::Context->dbh(); my ($borrowernumber, $itemnumber, $amount, $description) = @_; my $item = Koha::Items->find($itemnumber); - my $itype = Koha::ItemTypes->find({ itemtype => $item->effective_itemtype() }); + my $itype = $item->itemtype; my $replacementprice = $amount; my $defaultreplacecost = $itype->defaultreplacecost; my $processfee = $itype->processfee; -- 2.39.5