]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 4 Jan 2024 20:34:51 +0000 (20:34 +0000)
commit0a1088372b2c39a7b32e79dfdc5e067c658b13a6
treed0ed1085bfa84799a746f350c2e97de8d685d1e1
parent318bb230b2c856a0a441ced46f16fe56a98bf578
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>
(cherry picked from commit f83b9ab1ffc7e703804bdc52f30e1994984180b9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit ebf8e267aca64be7ea8b0741f3d4b7d23a7a6dac)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt
members/notices.pl