https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44330 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212773 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212773&action=edit Bug 44330: Keep the merged patron's recalls, bookings, return claims and other records Bug 44330: Keep the merged patron's recalls, bookings, return claims and other records Koha::Patron->merge_with() moves the rows of the tables listed in $RESULTSET_PATRON_ID_MAPPING to the patron kept, then deletes the merged patron. Tables that point at a patron with ON DELETE CASCADE and are not in that list were deleted with the patron: recalls, bookings, return claims, discharges, serial alerts, ILL comments, OPAC problem reports and catalog concerns. They are added to the mapping. Routing lists (bug 39841) need more than a mapping line and are not in this patch. Test plan: 1. Apply only the test file change and run prove t/db_dependent/Koha/Patrons.t The new subtest "merge_with keeps the merged patron's recalls, bookings, return claims and other records" fails all 8 of its tests. 2. Apply the whole patch and run it again: the new subtest and "Test Koha::Patrons::merge" pass. Note: '->set_password' and 'no warnings' already fail on main in KTD without this patch. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.