When merging patrons, guarantees aren't transferred to the patron that is kept. This causes guarantees without a guarantor. Merging should check for guarantees and transfer them to the kept guarantor.
Created attachment 190334 [details] [review] Bug 40339: add guarantees to target patron when merging patrons This patch adds the guarantees from the source patron to the target patron when merging patrons. Test plan: 1. Create two patrons with different guarantees. 2. Merge the source patron into the target patron. 3. See that the target patron does not have the source patron's guarantees. 4. Apply this patch. 5. Repeat the merge. 6. See that the target patron now has the source patron's guarantees. Sponsored-by: Koha-Suomi Oy