The PrefillGuaranteeField system preference does not allow for the copying of the surname field, I think it should.
Created attachment 144725 [details] [review] 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.
Created attachment 144728 [details] [review] 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>
Testing notes (using KTD): 1. Step 4: Showing my lack of knowledge (for whatever reason, I originally couldn't work out how to do this!) - to add a guarantee to a patron: 1.1 Go to a patron's account (such as Mary Burton) 1.2 Click the '+ Add guarantee' option after the 'Edit' option
Created attachment 146511 [details] [review] 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>
Pushed to master for 23.05. Nice work everyone, thanks!
Many hands makes light work, thankyou everyone! Pushed to 22.11.x for the next release
Enhancement will not be backported to 22.05.x