Bug 40263

Summary: Item is removed from course when moved then originating record is deleted
Product: Koha Reporter: Jason Robb <jrobb>
Component: Course reservesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low    
Version: Main   
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 Jason Robb 2025-06-27 14:26:16 UTC
If an item is moved to another record using the "Attach item" feature, then the originating record is deleted, the item will be removed from the course.

To replicate in ktd:

1.) Add an item to a course
 - More > Course reserves
 - Click first course
 - Click Add reserves
 - Add barcode 3999900000001
 - Go to the record (biblio: 1) and confirm the course shows in the holdings table

2.) Move the item
 - Navigate to another record (biblio: 344)
 - Click Edit > Attach item
 - Use barcode 3999900000001
 - Submit and click OK, note the course is still listed for the item on the new record

3.) Delete the original record (biblio: 1), note the item is no longer in the course