From df86121423c4770fe6d4971efeb5341e5a0b8825 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 20 Mar 2019 16:24:42 +0000 Subject: [PATCH] Bug 22550: OPAC suggestion form doesn't require mandatory fields Test plan: 1. OPAC->login->your purchase suggestions->New purchase suggestion 2. Click button "Submit your suggestion" directly without filling in any field. Empty suggestion record was added succeffully. 3. Apply the patch. 4. Click button "Submit your suggestion" directly without filling in any field. The required fields should be labeled in red. (you can change the mandatory fields by preference 'OPACSuggestionMandatoryFields') Signed-off-by: Bin Wen Signed-off-by: Jogiraju,T. Signed-off-by: Jogiraju,T. Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 28e7f1d4e7a114b04d6940463f47351466a638dd) Signed-off-by: Martin Renvoize --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index 7cfdc8fffa..f560e642b2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -341,7 +341,7 @@ [% END %] [% IF ( op_add && mandatoryfields ) %] { - var FldsRequired = [[% mandatoryfields | html %]]; + var FldsRequired = [[% mandatoryfields | $raw %]]; for (var i = 0; i < FldsRequired.length; i++) { var rq_input = $('#' + FldsRequired[i]); if (rq_input.length != 1) continue; -- 2.39.5