From: Jonathan Druart Date: Sat, 29 Sep 2018 16:10:19 +0000 (-0300) Subject: Bug 21454: Do not require html filter on Price X-Git-Tag: v18.11.00~697 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=d68d8f4f3672256fbd233310d1d4aa5857c28a8c;p=koha-ffzg.git Bug 21454: Do not require html filter on Price Test plan: - Apply first patch - Confirm that tests is failing (t/template_filters.t) - Apply second patch - Confirm that tests return green - Apply last patch - Confirm that prices are displayed correctly QA step: Edit a template and add the following 2 lines: [% SET p = '' %] [% x | $Price %] => Display '0.00' Signed-off-by: Kyle M Hall Signed-off-by: Nick Clemens --- diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm index 4b4a3d2835..2aa94b7dfb 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -65,7 +65,8 @@ sub missing_filters { next if grep { $tt_block =~ $_ } @tt_directives; next - if $tt_block =~ m{\s?\|\s?\$KohaDates\s?$} + if $tt_block =~ m{\s?\|\s?\$KohaDates\s?$} + or $tt_block =~ m{\s?\|\s?\$Price\s?$} ; # We could escape it but should be safe next if $tt_block =~ m{^\#}; # Is a comment, skip it