Bugzilla – Attachment 146511 Details for
Bug 31890
PrefillGuaranteeField should include option to prefill surname
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31890: Add surname to PrefillGuaranteeField system pref
Bug-31890-Add-surname-to-PrefillGuaranteeField-sys.patch (text/plain), 3.17 KB, created by
Kyle M Hall (khall)
on 2023-02-10 19:11:11 UTC
(
hide
)
Description:
Bug 31890: Add surname to PrefillGuaranteeField system pref
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-02-10 19:11:11 UTC
Size:
3.17 KB
patch
obsolete
>From 7e2a94c89caedf1aba2ac5e289190b20164908d5 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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 <david@davidnind.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../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 ) %] >- <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% borrower_data.surname | html %]" /> >+ <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% patron.surname | html %]" /> > [% ELSE %] >- <input type="text" id="surname" name="surname" size="20" value="[% borrower_data.surname | html %]" /> >+ <input type="text" id="surname" name="surname" size="20" value="[% patron.surname | html %]" /> > [% END %] > [% IF ( mandatorysurname ) %] > <span class="required">Required</span> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31890
:
144725
|
144728
| 146511