From a906f3820300722f5f92391deb6638fdafd37d09 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 Signed-off-by: Lari Taskula Signed-off-by: Emily Lamancusa Signed-off-by: Lucas Gass --- .../prog/en/modules/members/merge-patrons.tt | 162 +++++++++++++++--- 1 file changed, 134 insertions(+), 28 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 43f89a7612..356ff39060 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 @@ -140,7 +140,7 @@
[% INCLUDE 'csrf-token.inc' %] - +
@@ -176,6 +176,16 @@ [% END %]
 
+ [% IF ( patrons.count == 2 ) %] +
+
+
+ + +
+ +
+ [% END %]
[% FOREACH p IN patrons %] @@ -239,33 +249,35 @@