From 13e1e55fb872d8a0e79fa8466f9f1276c5517e35 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 19 Dec 2022 20:40:57 +0000 Subject: [PATCH] Bug 31890: Add surname to PrefillGuaranteeField system pref To test: 1. Apply patch and restart_all 2. Find the system preference PrefillGuaranteeField 3. Look for the Surname option and add it 4. Go to a patron account and add a gaurantee 5. See that the surname is properly populated for the gaurantor's surname field Note: This patch replaces borrower_data.surname with patron.surname. There seems to be a mismatch here so I filed Bug 32458. Signed-off-by: David Nind Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/admin/preferences/patrons.pref | 1 + .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref index 9ea2bea534..685a09b2e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref @@ -302,6 +302,7 @@ Patrons: - "When adding a guarantee to a guarantor patron fill the following fields in the guarantee's member entry form from the guarantors record:" - pref: PrefillGuaranteeField multiple: + surname: "Surname" B_streettype: "Alternate address - Street type" B_address: "Alternate address - Address" B_address2: "Alternate address - Address 2" diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 365b15600c..9dd015b99e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -318,9 +318,9 @@ legend:hover { [% END %] [% IF ( uppercasesurnames ) %] - + [% ELSE %] - + [% END %] [% IF ( mandatorysurname ) %] Required -- 2.39.5