The cashup summary modal include uses the \$raw filter on Koha.CSPNonce, but never declared [% USE raw %]. The QA template tester (which processes templates through a fresh Template::Toolkit instance) reports "valid_template: filter not found" because the \$raw plugin is not loaded. Add [% USE raw %] at the top of the include, matching the convention used by other includes that emit nonce attributes (e.g. includes/str/cataloging_additem.inc). Test plan: 1. Run qa-test-tools against the bug branch -- cashup_summary.inc passes valid_template. 2. Open the cashup summary modal -- the <style> tag still receives a CSP nonce and the embedded styles render correctly. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Jackie Usher <jackie.usher@westsussex.gov.uk> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk> |
||
|---|---|---|
| .. | ||
| intranet-tmpl | ||
| opac-tmpl | ||