Bug 32663: Limit streetnumber to 10 characters in OPAC
This change harmonizes the patron streetnumber input between the staff interface and the OPAC, so that you can only enter 10 characters into the streetnumber for the OPAC. Without this change, a fatal error will be thrown trying to save the too long data. Test plan: 0. Apply the patch 1. Go to http://localhost:8080/cgi-bin/koha/opac-memberentry.pl 2. Note that you can only enter 10 characters into the "Street number" field as a self-registration patron 3. Log into Koha 4. Go to http://localhost:8080/cgi-bin/koha/opac-memberentry.pl 5. Note that you can only enter 10 characters into the "Street number" field when editing logged in patron details too 6. Go to http://localhost:8081/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=S 7. Note that you can only enter 10 characters into the "Street number" field as a staff member Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Solene Ngamga <solene.ngamga@inLibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit9e19a88f02) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> (cherry picked from commitd26d371af9) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit58a448b79c) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
08b46701d8
commit
2513ca3834
|
|
@ -15,7 +15,7 @@
|
|||
<li>
|
||||
<label for="borrower_streetnumber" class="[% required.streetnumber | html %]">Street number:</label>
|
||||
|
||||
<input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber | html %]" class="[% required.streetnumber | html %]" />
|
||||
<input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber | html %]" class="[% required.streetnumber | html %]" size="5" maxlength="10" />
|
||||
<div class="required_label [% required.streetnumber | html %]">Required</div>
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue