Bugzilla – Attachment 118020 Details for
Bug 27726
OPACProblemReports cuts off message text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27726: Add maxlength attribute to OPACProblemReport textarea
Bug-27726-Add-maxlength-attribute-to-OPACProblemRe.patch (text/plain), 1.81 KB, created by
Peter Vashchuk
on 2021-03-10 09:47:17 UTC
(
hide
)
Description:
Bug 27726: Add maxlength attribute to OPACProblemReport textarea
Filename:
MIME Type:
Creator:
Peter Vashchuk
Created:
2021-03-10 09:47:17 UTC
Size:
1.81 KB
patch
obsolete
>From 436bd00d9a1dcb4a1e1220f737f685746e88ea69 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 26 Feb 2021 15:17:42 +0000 >Subject: [PATCH] Bug 27726: Add maxlength attribute to OPACProblemReport > textarea > >This patch adds a maxlength attribute to the OPACProblemReport textarea. >This will prevent the user from entering more characters than the table >column limit (255). > >To test, apply the patch and enable the OPACProblemReport system >preference. > > - Log into the OPAC > - Click the "Report a problem" link at the bottom of the page. > - You should see a hint below the textarea, "255 characters maximum." > - Enter enough text in the textarea to confirm that it is cut off at > 255 characters. > >Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reportproblem.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reportproblem.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reportproblem.tt >index 2951ed7891..31dd875591 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reportproblem.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reportproblem.tt >@@ -81,7 +81,8 @@ > </li> > <li> > <label for="message">Message: </label> >- <textarea name="message" id="message" rows="7" cols="60"></textarea> >+ <textarea name="message" id="message" rows="7" cols="60" maxlength="255"></textarea> >+ <div class="hint">255 characters maximum</div> > </li> > </ol> > </fieldset> >-- >2.28.0
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 27726
:
117383
|
118020
|
118811
|
118838
|
118839
|
118840
|
118841
|
118905
|
119344