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> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
736805ae5c
commit
13e1e55fb8
2 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue