From 21f4f860fc1ea12ffa07b11e702d70a7ea0c9956 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Sat, 22 Jul 2017 21:48:49 +0200
Subject: [PATCH] Bug 18971: Typo Koha::ItemsTypes for Koha::ItemTypes
Content-Type: text/plain; charset=utf-8

As reported by Nick, a typo from bug 17843.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 acqui/orderreceive.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl
index f09e364..ee244d7 100755
--- a/acqui/orderreceive.pl
+++ b/acqui/orderreceive.pl
@@ -146,7 +146,7 @@ if ($AcqCreateItem eq 'receiving') {
         $descriptions = Koha::AuthorisedValues->get_description_by_koha_field({frameworkcode => $fw, kohafield => 'items.materials', authorised_value => $item->{materials} });
         $item->{materials} = $descriptions->{lib} // '';
 
-        my $itemtype = Koha::ItemsTypes->find( $item->{itype} );
+        my $itemtype = Koha::ItemTypes->find( $item->{itype} );
         $item->{itemtype} = $itemtype->description; # FIXME Should not it be translated_description?
         push @items, $item;
     }
-- 
2.1.4