Web Client: Print Template Library Settings do not work with HTML

Bug #1801143 reported by John Amundson
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Medium
Unassigned

Bug Description

Evergreen 3.0.13 and Evergreen 3.2.1

The following library settings
circ.staff_client.receipt.alert_text
circ.staff_client.receipt.event_text
circ.staff_client.receipt.footer_text
circ.staff_client.receipt.header_text
circ.staff_client.receipt.notice_text

can be added to print templates in the web client with the following code
{{includes.alert_text}}
{{includes.event_text}}
{{includes.footer_text}}
{{includes.header_text}}
{{includes.notice_text}}

These settings currently only work with plain text. If HTML is added to the setting, (as described in the setting's description "Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(header_text)%" - bug #1705302), the text is printed plainly.

The XUL client seems to work fine with HTML in these settings.

Therefore the Web client print templates should also work when HTML is stored in these settings.

(For reference I tested all five of the settings on the following print templates: Checkout, Items Out, and Bills, Payment).

Revision history for this message
Garry Collum (gcollum) wrote :

Confirmed in 3.2.5 and in current master.

Changed in evergreen:
status: New → Confirmed
tags: added: printing
tags: removed: webstaffclient
Revision history for this message
Janet MacDonald (jgpl) wrote :

I've tried all 5 includes and they do not take html. When I had a dash '_' in the text it converted it to Unicode \u2013. So I converted my line break to Unicode. But, when it saves it, it converts it to Unicode and I end up with \\u2424 instead of \u2424 within the value.
Also, I find the Revert does strange things.

Changed in evergreen:
importance: Undecided → Medium
tags: added: regression
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.