Bugzilla – Attachment 144728 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.12 KB, created by
David Nind
on 2022-12-20 00:57:53 UTC
(
hide
)
Description:
Bug 31890: Add surname to PrefillGuaranteeField system pref
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-12-20 00:57:53 UTC
Size:
3.12 KB
patch
obsolete
>From d4396a05889662a437a7ff8eb12a3623e67ab0e6 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> >--- > .../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 fd91a8576a..5493243816 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 >@@ -301,6 +301,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 48f62ddd52..5f2ffbb508 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