Bug 40339

Summary: Merge patrons causes guarantees without guarantors
Product: Koha Reporter: Mikko Liimatainen <mikko.liimatainen>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: acampbell, gmcharlt, kyle, ollikautonen72
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 40339: add guarantees to target patron when merging patrons

Description Mikko Liimatainen 2025-07-10 10:01:33 UTC
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.
Comment 1 Olli Kautonen 2025-12-09 08:15:57 UTC
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