https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44331 Bug ID: 44331 Summary: Merging records deletes the merged record's bookings, recalls and course reserves Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: babarjunaid1122@gmail.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Target Milestone: --- Koha::Biblio->merge_with moves the merged record's items, item groups, article requests, subscriptions, serials, suggestions, orders and holds to the record kept, then deletes the merged record. Bookings (bookings.biblio_id), recalls (recalls.biblio_id) and course reserves (course_items.biblionumber) are ON DELETE CASCADE and are not moved, so they are deleted, although their items were moved to the record kept. To reproduce (main): 1. Record 2 has an item with a booking, a recall, and the item on a course reserve. 2. Merge record 2 into record 1. 3. The item is on record 1, but the booking, the recall and the course reserve are gone. The new subtest 'move bookings, recalls and course reserves' in t/db_dependent/Koha/Biblio.t fails without the patch. Lists are bug 34200 and local cover images bug 31181. See Also 34200, 31181. Note for testers: on main, Biblio.t already fails 'no warnings' in KTD without this patch. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.