Bug 25379: Add raw filter to circulation note on checkin page

This is a consistency patch: we already allow adding HTML tags
to the patron circulation note and the contents display
correctly in the patron account and in the patron search results
in the staff interface. But the HTML tags are printed on the
checkins page.

To test:
* Add a circulation note including HTML tags to a patron
  Example: <h1>This patron is great!</h1>
* Check an item out to this patron
* Verify that the note displays formatted in patron search results
* Verify that the note displays formatted in the patron record
* Return the item
* Verify the note shows the printed tags
* Apply patch
* Check item out again and check it in again
* Verify the note now displays correctly in list of checkins

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2023-03-17 21:36:23 +00:00 committed by Tomas Cohen Arazi
parent 2873847246
commit 2608e405de
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -1284,7 +1284,7 @@
</td>
<td class="ci-note">
[% IF ( riloo.patron.borrowernotes ) %]
<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | $raw %]</span></p>
[% END %]
[% IF ( riloo.itemnote ) %]
<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>