Bug 18971: Typo Koha::ItemsTypes for Koha::ItemTypes
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Sat, 22 Jul 2017 19:48:49 +0000 (21:48 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Jul 2017 16:03:25 +0000 (13:03 -0300)
As reported by Nick, a typo from bug 17843.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

acqui/orderreceive.pl

index f09e364..ee244d7 100755 (executable)
@@ -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;
     }