Bug 18399: (follow-up) Escape reason input
authorAlex Arnaud <alex.arnaud@biblibre.com>
Wed, 11 Oct 2017 10:16:36 +0000 (10:16 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Oct 2017 16:05:42 +0000 (13:05 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

index 25e04b0..5a8ada6 100644 (file)
@@ -491,7 +491,7 @@ h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o
 
                     <span id="other_reason" name="other_reason">
                         [% IF other_reason %]
-                            <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." value="[% suggestion.reason%]"/>
+                            <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." value="[% suggestion.reason | html %]"/>
                         [% ELSE %]
                             <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." />
                         [% END %]