@@ -, +, @@ items table The ajax call is with HTTP 500 error containing : Can't call method "description" on an undefined value --- catalogue/getitem-ajax.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/catalogue/getitem-ajax.pl +++ a/catalogue/getitem-ajax.pl @@ -73,7 +73,9 @@ if($itemnumber) { $item->{materials} = $descriptions->{lib} // ''; my $itemtype = Koha::ItemTypes->find( $item->{itype} ); - $item->{itemtype} = $itemtype->description; # FIXME Should not it be translated_description? + if (defined $itemtype) { + $item->{itemtype} = $itemtype->description; # FIXME Should not it be translated_description? + } } my $json_text = to_json( $item, { utf8 => 1 } ); --