Bug 26597: (Fix) remove REST API call and retrieve the patron's data from borrower_da...
authorHammat Wele <hammat.wele@inlibro.com>
Tue, 30 May 2023 21:41:14 +0000 (21:41 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 18 Mar 2024 10:03:32 +0000 (11:03 +0100)
commit9ee8d21b264bed3dd92583f92c1a374c9c6920cd
tree549c147cc5bf17fd7a39a81f9a00b090b1a3213c
parent0b789bbc9638c34d0b01480b756eb65478a90617
Bug 26597: (Fix) remove REST API call and retrieve the patron's data from borrower_data input

This patch remove the REST API call in select_user function and retrieve the patron's data from borrower_data

To test:
1) Apply patch
2) Search PrefillGuaranteeField preference and make sure some fields are selected
3) Select a user that can have a guarantor
4) In the edit form, click on "Search to add" in "Patron guarantor" fieldset
5) Choose a patron who has at least one of the fields in 1) set
6) Click Select
7) Confirm guarantee's information is filled from the guarantor's record
8) Check that any preexisting information is not overwritten

Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
koha-tmpl/intranet-tmpl/prog/js/members.js
members/memberentry.pl