From 468fe2d0ee20ab1fc3ae437fc558d2115159b60f Mon Sep 17 00:00:00 2001 From: Owen Leonard 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 Signed-off-by: Amit Gupta --- 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 @@
  • - + +
    255 characters maximum
  • -- 2.7.4