From 6127483391f7ff40a40bf7e2553de6c65ad18e30 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 10 Jul 2012 15:19:38 +0200 Subject: [PATCH] Bug 8407: make tt_valid less strict (for non translatable strings) Signed-off-by: Chris Cormack --- xt/tt_valid.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xt/tt_valid.t b/xt/tt_valid.t index f71085e..a3114b2 100755 --- a/xt/tt_valid.t +++ b/xt/tt_valid.t @@ -38,7 +38,12 @@ my @files_with_directive_in_tag = do { while ( my $token = $parser->next_token ) { my $attr = $token->{_attr}; next unless $attr; - push @lines, $token->{_lc} if $attr->{'[%'}; + push @lines, $token->{_lc} + if $attr->{'[%'} + and not ( $attr->{selected} + or $attr->{disabled} + or $attr->{checked} + ); } ($dir) = $dir =~ /koha-tmpl\/(.*)$/; push @files, { name => "$dir/$name", lines => \@lines } if @lines; -- 1.7.10.4