https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 --- Comment #1 from Brendan Lawlor <blawlor@clamsnet.org> --- Created attachment 212571 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212571&action=edit Bug 44268: Show logs for deleted items in a record's modification log When the log viewer is opened with object_type=biblio, it includes item-level CATALOGUING logs for the record's items. The list of itemnumbers was built from the record's current items only, so once an item was deleted, all of its logs (add, modify and delete) disappeared from the record's modification log. This patch: - Adds a helper in tools/viewlog.pl that collects itemnumbers from both items and deleteditems, used by both the screen and CSV output - Adds the Delete action to the record's "Modification log" link so deletions are shown by default Test plan: 1. Enable the CataloguingLog system preference 2. Find a record with at least two items and edit one of them 3. Delete that item 4. On the record's detail page, click "Modification log" 5. Note the deleted item's modification is not listed, and the Delete action is not checked 6. Check Delete and click Submit (depends on bug 44264) 7. Note the item's modification and deletion are still not listed 8. Apply patch 9. Repeat step 4 10. Note the Delete action is checked and the deleted item's modification and deletion are both listed 11. Export the log as CSV and confirm the same entries are included 12. Search with the deleted item's itemnumber as Object and confirm its logs are still found as before Sponsored-by: CLAMS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.