Bug 40154

Summary: Deleting an item does not warn about an item level hold
Product: Koha Reporter: Anni Mäki-Mantila <anni.maki-mantila>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Anni Mäki-Mantila 2025-06-17 07:36:43 UTC
At the moment, Koha doesn't give any warning if user is deleting an item that has a hold attached to it. Item is simply deleted and the item level hold vanishes as well.

To reproduce:

1. Make an item level hold

2. Delete the item using alternative A or B:

A: Open the biblios Detail-view -> From the toolbar, open "Edit"-dropdown menu -> Manage items -> Delete the item that has an item level hold attached to it from "Actions"-dropdown menu
B: Open the biblios Detail-view -> Select the item that has an item level hold attached to it -> Click "Delete selected items" -> Confirm deletion

3. Notice that the item is deleted without any warning and the item level hold has disappeared

4. Run following sql report: SELECT * FROM old_reserves WHERE biblionumber = [biblionumber you used in the test]

5. Notice that the item level hold is not found in old_reserves-table