Revert "Bug 31470: Do not change relationship value when adding a patron guarantor"
This reverts commit 88c4e486ca.
This commit is contained in:
parent
88c4e486ca
commit
1dc5ccfe15
|
|
@ -721,7 +721,7 @@ legend.collapsed i.fa.fa-caret-down::before {
|
|||
<li>
|
||||
[% IF mandatoryrelationship %]
|
||||
<label for="relationship" class="required">Relationship: </label>
|
||||
<select class="relationship" name="relationship" id="relationship" required="required">
|
||||
<select class="relationship" name="relationship" required="required">
|
||||
[% ELSE %]
|
||||
<label for="relationship">Relationship: </label>
|
||||
<select class="relationship" name="relationship" id="relationship">
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ function select_user(borrowernumber, borrower, relationship) {
|
|||
|
||||
var guarantor_relationship = $('#relationship').val();
|
||||
fieldset.find('.new_guarantor_relationship').first().val( guarantor_relationship );
|
||||
$('#relationship').find('option:eq(0)').prop('selected', true);
|
||||
|
||||
fieldset.find('.guarantor-details').first().attr( 'data-borrowernumber', borrowernumber );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue