Bugzilla – Attachment 118838 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
0001-Bug-27726-Add-maxlength-attribute-to-OPACProblemRepo.patch (text/plain), 1.86 KB, created by
Amit Gupta
on 2021-03-26 03:44:12 UTC
(
hide
)
Description:
Bug 27726: Add maxlength attribute to OPACProblemReport textarea
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2021-03-26 03:44:12 UTC
Size:
1.86 KB
patch
obsolete
>From 468fe2d0ee20ab1fc3ae437fc558d2115159b60f 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> >Signed-off-by: Amit Gupta <amitddng135@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 2951ed7..31dd875 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.7.4 >
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