Bug 21576: Add a developer script to fix missing TT filters
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 12 Oct 2018 16:57:49 +0000 (13:57 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 26 Oct 2018 17:09:51 +0000 (17:09 +0000)
commitc933244fe60614a6a9d0f14efec4f175966c1704
tree445457e571e9266d8b9a9e28da0c6ed3deab01b8
parentf32ee27deb7abe531ad5e5db5242f7243e3baa8d
Bug 21576: Add a developer script to fix missing TT filters

See bug 13618 and bug 21526.

We need a script to add missing filters, or replace wrong ones.

Test plan:
- Add unescaped variables to .tt files
- prove xt/find-missing-filters.t
will warn about them
- perl misc/devel/add_missing_filters.pl
will add the missing/wrong filters
- prove xt/find-missing-filters.t
will now be happy

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/devel/add_missing_filters.pl [new file with mode: 0755]
t/lib/QA/TemplateFilters.pm
t/template_filters.t
xt/find-missing-filters.t