I think we need some test to see if the ID still exists: To test: * Find a record with a few items * Delete all items * Create a report: select * from deleteditems; Try the links on the itemnumber - they will result in an error: Can't call method "biblionumber" on an undefined value at /kohadevbox/koha/catalogue/moredetail.pl line 76