[Koha-bugs] [Bug 23808] Creating Child Guarantee doesn't populate Guarantor Information
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 17 05:52:37 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23808
--- Comment #5 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 100842
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100842&action=edit
Bug 23808: Pre-fill guarantor fields when adding guarantee to guarantor
Bug 14570 removed the guarantor pre-fill functionality when selecting
'Add guarantee' to an Adult patron. This is because guarantor
information would now only display if (1) the patron record exists
(which it won't when first adding guarantee to guarantor record) and (2)
if there is already a guarantor added to a guarantee
This patchfix will pre-fill guarantor fields if no relationship (existing
guarantor data exists) and a guarantor_id is handed to memberenty.pl in
URL when clicking 'Add guarantee' button on Adults patron record.
Test plan:
1. Add adult patron
2. Select 'Add guarantee'
3. Observe no details of the adult patron
are displaying in the 'Guarantor information' section of the memberentry.pl
page
4. Select 'Search to add', search for your adult patron and choose
'Select' to add them as guarantor
5. Fill out rest of memberentry.pl and 'Save'
6. Observe adult is showing as the guarantor
7. Apply patch
8. Run tests:
sudo koha-shell <instancename>
prove xt
prove t
9. Confirm tests pass
10. Return to your adult patron
11. Select 'Add guarantee'
12. Observe in 'Guarantor information' section of memberentry.pl
pre-filled is the 'patron #' (borrowernumber), surname, firstname
13. Fill out the rest of memberenty.pl and save and confirm your adult
patron is showing as the guarantor
14. Repeat steps 10,11 and 12 and in the 'Guarantor information' select
'Search to add' and add another adult as guarantor
15. Fill out the rest of memberentry.pl and 'Save' and notice with this
patch applied you can still add multiple guarantors successfully
Sponsored-By: South Taranaki Distict Libraries, NZ
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list