From 1114978d8ba99313189cd7822034d16859154899 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 --- 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.20.1