[Koha-bugs] [Bug 31470] Incorrect selector for relationship dropdown used in members.js
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 23 15:20:53 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31470
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart+koha at gmail.
| |com
--- Comment #10 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
102 var guarantor_surname = $('#guarantor_surname').val();
103 fieldset.find('.new_guarantor_surname').first().val(
guarantor_surname );
104 fieldset.find('.new_guarantor_surname_text').first().text(
guarantor_surname );
105 $('#guarantor_surname').val("");
106
107 var guarantor_firstname = $('#guarantor_firstname').val();
108 fieldset.find('.new_guarantor_firstname').first().val(
guarantor_firstname );
109 fieldset.find('.new_guarantor_firstname_text').first().text(
guarantor_firstname );
110 $('#guarantor_firstname').val("");
111
112 var guarantor_relationship = $('#relationship').val();
113 fieldset.find('.new_guarantor_relationship').first().val(
guarantor_relationship );
114 $('#relationship').find('option:eq(0)').prop('selected', true);
This code is not clear to me, what are we trying to do?
Is it really want we want?
In my test I see an inconsistency:
Edit a patron, fill "Non-patron guarantor" input and select
Add guarantor, select an user
=> surname and firstname inputs are kept, but select is emptied
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list