Bug 23409: show borrowernotes and opacnote's lines feeds
authorAlex Arnaud <alex.arnaud@biblibre.com>
Thu, 1 Aug 2019 12:48:31 +0000 (14:48 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 24 Mar 2020 10:58:39 +0000 (10:58 +0000)
Test plan:
  - Fill borrowernotes and opacnote with lines separated by lines
    endings,
  - save and check the content is displayed on a single line,
  - apply this patch,
  - check lines endings are displayed

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt

index 4953249..df2569e 100644 (file)
 
                                         [% IF ( patron.borrowernotes ) %]
                                             <li id="patron-borrowernotes">
-                                                <span class="label">Circulation note: </span>
-                                                [% patron.borrowernotes | $raw %]
+                                                <span class="label">Circulation note: </span><br />
+                                                [% patron.borrowernotes | html | html_line_break %]
                                             </li>
                                         [% END %]
 
                                         [% IF ( patron.opacnote ) %]
                                             <li id="patron-opacnote">
-                                                <span class="label">OPAC note:</span>
-                                                [% patron.opacnote | html %]
+                                                <span class="label">OPAC note:</span><br />
+                                                [% patron.opacnote | html | html_line_break %]
                                             </li>
                                         [% END %]