Bugzilla – Attachment 103933 Details for
Bug 25309
Unable to save patron if streetnumber is too long
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25309: Limit size of streetnumber field to 10
Bug-25309-Limit-size-of-streetnumber-field-to-10.patch (text/plain), 3.18 KB, created by
Jonathan Druart
on 2020-04-29 12:59:24 UTC
(
hide
)
Description:
Bug 25309: Limit size of streetnumber field to 10
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-29 12:59:24 UTC
Size:
3.18 KB
patch
obsolete
>From de04ec9f9b0971ca09258ac2eb84bb28ff98250e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 29 Apr 2020 14:57:57 +0200 >Subject: [PATCH] Bug 25309: Limit size of streetnumber field to 10 > >It's its size in DB (varchar(10)) > >Test plan: >Create or editing a patron and confirm that you fill in more than 10 >characters in the streetnumber field >Save >=> The patron has been correctly created/updated >--- > .../prog/en/includes/member-main-address-style-de.inc | 2 +- > .../prog/en/includes/member-main-address-style-fr.inc | 2 +- > .../prog/en/includes/member-main-address-style-us.inc | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc >index 818d7c6317..0d0f25cf0b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc >@@ -43,7 +43,7 @@ > <label for="streetnumber"> > [% END %] > Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber | html %]" /> >+ <input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" /> > [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc >index a79df88123..0bf679ea12 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc >@@ -9,7 +9,7 @@ > <label for="streetnumber"> > [% END %] > Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber | html %]" /> >+ <input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" /> > [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc >index 0db6e834dd..bb6002cf1b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc >@@ -8,7 +8,7 @@ > <label for="streetnumber"> > [% END %] > Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber | html %]" /> >+ <input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" /> > [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25309
:
103889
|
103933
|
103956
|
104159