From a8d9a003cce3733ed9fa457b3555edb05ff7ca2b 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 --- C4/Accounts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 84ebbcd225a..e5b7c441d8a 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.30.2