@@ -, +, @@ translatable strings) --- xt/tt_valid.t | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) --- a/xt/tt_valid.t +++ a/xt/tt_valid.t @@ -24,7 +24,6 @@ use File::Find; use Cwd; use C4::TTParser; - my @files_with_directive_in_tag = do { my @files; find( sub { @@ -38,7 +37,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; --