Bug 40263 - Item is removed from course when moved then originating record is deleted
Summary: Item is removed from course when moved then originating record is deleted
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Course reserves (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-27 14:26 UTC by Jason Robb
Modified: 2025-06-27 14:26 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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