https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44331 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212774 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212774&action=edit Bug 44331: Keep bookings, recalls and course reserves when merging records Bug 44331: Keep bookings, recalls and course reserves when merging records Koha::Biblio->merge_with() moves the merged record's items, holds, orders and other rows to the record kept, then deletes the merged record. Bookings, recalls and course reserves point at the record with ON DELETE CASCADE and were not moved, so they were deleted although their items had moved to the record kept. They are now moved with the items. Test plan: 1. Apply only the test file change and run prove t/db_dependent/Koha/Biblio.t The new subtest "move bookings, recalls and course reserves" (in "merge of records") fails: the booking, the recall and the course reserve are gone after the merge. 2. Apply the whole patch and run it again: it passes. Note: 'no warnings' already fails on main in KTD without this patch. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.