Bug 31211: Check slips and notices for valid Template Toolkit and report errors
authorKyle Hall <kyle@bywatersolutions.com>
Thu, 21 Jul 2022 15:06:15 +0000 (11:06 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 26 Jul 2022 12:28:56 +0000 (09:28 -0300)
commit8c0adbc4a04afc3d6286236c35195a498b5342ae
treec1b1f5a0e6125dd46f2836e1e445fea527131c7f
parent49ab11b61dcf844609ffe429a1a1c402be867eba
Bug 31211: Check slips and notices for valid Template Toolkit and report errors

It would be useful for Koha to run a basic TT validation test and report back errors.
That way if somebody misses an END tag or something of that nature, it will be easy to find and fix.

Test Plan:
1) Apply this patch
2) Edit a notice, change the content to simply "[% END %]"
   or some other invalid Template Toolkit
3) Choose "Save and continue editing"
4) Note the new "Template Toolkit error" field that displays the error
   message

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
tools/letter.pl