Bug 40602: Broken HTML showing in Alert 'subscriptions' tab
This patch adds handling of the "no-html" flag to patron-title.inc. The OPAC alert subscriptions page passes the "no-html" flag but the include file wasn't written to include it. To test, apply the patch and log in to the OPAC as a user who has a title (salutation). - Add a serial subscription and set a notification template - Go to the OPAC and subscribe to the email notification for this subscription - Go to the patron account > Alert subscriptions tab - Verify that the last column shows an "Unsubscribe from email alerts" button. - There should be no errant HTML. Sponsored-by: Athens County Public Libraries Signed-off-by: Noah Tremblay <noah.tremblay@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
3b041f4cf0
commit
97226193a6
|
|
@ -2,7 +2,11 @@
|
|||
[% patron.surname | html %][% IF patron.othernames %]([% patron.othernames | html %])[%- END -%]
|
||||
[%- ELSE -%]
|
||||
[%- IF patron.title -%]
|
||||
<span class="patron-title">[% patron.title | html %]</span>
|
||||
[%- IF no_html -%]
|
||||
[% patron.title | html %]
|
||||
[%- ELSE -%]
|
||||
<span class="patron-title"></span>
|
||||
[%- END -%]
|
||||
[%- END -%]
|
||||
[% patron.preferred_name | html %]
|
||||
[% patron.middle_name | html %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue