From 43805f10eb795cd257ab5eb185655ff1bd576853 Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Thu, 11 Sep 2025 15:58:35 +0000 Subject: [PATCH] Bug 30303: Add ui for copying values when merging patrons When merging two patrons this patch adds a new checkbox to 'Copy values from the record to be deleted' To test: - Apply patches and restart_all 1. From select two patrons and click 'Merge selected patrons' 2. Select one of the records 3. Check the new box to 'Copy values from the record to be deleted' 4. A diff of the two patrons is shown with checkboxes for each field 5. Confirm checking and un-checking the boxes updates the diff as expected 6. Confirm changing the patron selection updates the diff as expected. 7. Confirm un-checking and re-checking the Copy values from the record to be deleted resets the check boxes for the fields to copy 8. Select some fields to copy values and click merge patrons 9. Confirm the values were copied as expected Sponsored-by: CLAMS --- .../prog/en/modules/members/merge-patrons.tt | 152 +++++++++++++++--- 1 file changed, 126 insertions(+), 26 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt index c912466d4e..0ba7575220 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt @@ -176,6 +176,16 @@ [% END %] + [% IF ( patrons.count == 2 ) %] +
+ + [% END %]
[% FOREACH p IN patrons %] @@ -239,33 +249,34 @@