Bugzilla – Attachment 117383 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.76 KB, created by
Owen Leonard
on 2021-02-26 15:23:42 UTC
(
hide
)
Description:
Bug 27726: Add maxlength attribute to OPACProblemReport textarea
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-02-26 15:23:42 UTC
Size:
1.76 KB
patch
obsolete
>From f3bc7c444f7a293bd032bf6594eb4c9440a2870a 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. >--- > 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.11.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