View | Details | Raw Unified | Return to bug 21842
Collapse All | Expand All

(-)a/catalogue/getitem-ajax.pl (-2 / +1 lines)
Lines 73-79 if($itemnumber) { Link Here
73
    $item->{materials} = $descriptions->{lib} // '';
73
    $item->{materials} = $descriptions->{lib} // '';
74
74
75
    my $itemtype = Koha::ItemTypes->find( $item->{itype} );
75
    my $itemtype = Koha::ItemTypes->find( $item->{itype} );
76
    $item->{itemtype} = $itemtype->description; # FIXME Should not it be translated_description?
76
    $item->{itemtype} = defined $itemtype ? $itemtype->description : q{}; # FIXME Should not it be translated_description?
77
}
77
}
78
78
79
my $json_text = to_json( $item, { utf8 => 1 } );
79
my $json_text = to_json( $item, { utf8 => 1 } );
80
- 

Return to bug 21842