Bug 36983: Fix incorrect required class
This patch fixes an error on the B_address2 field which sets it to be required incorrectly Test plan: 1) In PatronSelfRegistrationBorrowerMandatoryField, set B_address to be required. 2) In the OPAC, navigate to the self registration form. 3) In the Alternate address section, fill in the Address field that you have just set to be required. Ensure that you leave the Address 2 field blank. 4) Fill in all other required fields and submit the form, it should show you that the Address 2 field is required, even though it shouldn't be 5) Apply patch 6) Refresh the page and repeat steps 1-5, it should allow youto submit the form Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit009d83648c) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit18a186969e) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
455c4f03d8
commit
f5374d030d
|
|
@ -762,7 +762,7 @@
|
|||
<li>
|
||||
<label for="borrower_B_address2" class="[% required.B_address | html %]">Address 2:</label>
|
||||
|
||||
<input type="text" id="borrower_B_address2" name="borrower_B_address2" value="[% borrower.B_address2 | html %]" class="[% required.B_address | html %]" />
|
||||
<input type="text" id="borrower_B_address2" name="borrower_B_address2" value="[% borrower.B_address2 | html %]" class="[% required.B_address2 | html %]" />
|
||||
<div class="required_label [% required.B_address2 | html %]">Required</div>
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue