From 436bd00d9a1dcb4a1e1220f737f685746e88ea69 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 --- 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 @@
  • - + +
    255 characters maximum
  • -- 2.28.0