Bug 40339 - Merge patrons causes guarantees without guarantors
Summary: Merge patrons causes guarantees without guarantors
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-10 10:01 UTC by Mikko Liimatainen
Modified: 2025-12-09 08:15 UTC (History)
4 users (show)

See Also:
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 (1.99 KB, patch)
2025-12-09 08:15 UTC, Olli Kautonen
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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