Bug 19166: (follow-up) Add ADJ_REASON auhtorised value category and minor fixes
[koha.git] / acqui / basketgroup.pl
index 386357b..78514ba 100755 (executable)
@@ -194,10 +194,11 @@ sub printbasketgrouppdf{
                 }
             }
 
-            my $item_has_type_description = ($ord->{itemtype}
-                                         and $biblioitem->itemtype
-                                         and Koha::ItemTypes->find( $biblioitem->itemtype ));
-            $ord->{itemtype} = $item_has_type_description ? Koha::ItemTypes->find( $biblioitem->itemtype )->description : undef;
+            my $itemtype = ( $ord->{itemtype} and $biblioitem->itemtype )
+                ? Koha::ItemTypes->find( $biblioitem->itemtype )
+                : undef;
+            $ord->{itemtype} = $itemtype ? $itemtype->description : undef;
+
             $ord->{en} = $en ? $en : undef;
             $ord->{edition} = $edition ? $edition : undef;