]> git.koha-community.org Git - koha.git/commit
Bug 30287: Conditionally render notice preview
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 6 Nov 2023 12:50:05 +0000 (12:50 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 19 Dec 2023 12:42:10 +0000 (13:42 +0100)
commitf83b9ab1ffc7e703804bdc52f30e1994984180b9
tree03d5ebc5aa8472152152dcc09815ae097ab6eff6
parent8bb8282d6868b458237fe2b0638dc810c116077b
Bug 30287: Conditionally render notice preview

This patch adds conditional formatting based on whether the notice was
generated from an HTML template or a plaintext one. We simply drop the
'html_line_break' filter for the case where the notice should already be
html formatted.

I was tempted to replace the html_line_break for plaintext formatted
notices too as I believe this closer resembles how we actually output
such generated notices.. but I decided that should be for another bug.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt
members/notices.pl