Bug 33478: Consider TranslateNotices when saving notice styles
authorAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 29 Feb 2024 01:30:06 +0000 (01:30 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 26 Apr 2024 18:15:47 +0000 (20:15 +0200)
commit225a6747f0556bd4de4fbc0e5cb58001bc2dcb7b
tree4981ede1bfa8218f50b27c7d579daa80c0d90448
parentc6cb14b3c6f5fc16de2bb97d9739e1692a894495
Bug 33478: Consider TranslateNotices when saving notice styles

This patch ensures saving styles per notice still works as expected when the TranslateNotices system preference is enabled.

To test, enable the TranslateNotices system preference and attempt to save different CSS for each installed language for one notice. Confirm the correct CSS is saved for the correct language.

Confirm the CSS selector helpers are inserted into the textarea as expected.

Confirm the 'Apply format settings to all notices for this language' setting works, as in CSS is saved for all relevant language notices.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
koha-tmpl/intranet-tmpl/prog/js/letter.js
tools/letter.pl