Bug 41324: Adjust test for bug 38365

The script tags now contain a TT tag
  <script nonce="[% Koha.CSPNonce | $raw %]">

It's not a problem.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-03-12 11:34:01 +01:00 committed by Lucas Gass
parent 62ca5e0eac
commit a1c7b7062c
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,10 @@ for my $file (@tt_files) {
my ( $in_script, $has_tt_tags, $has_kohaTable );
for my $line (@lines) {
$in_script ||= $line =~ m{<script};
if ( $line =~ m{<script} ) {
$in_script = 1;
next;
}
if ( $line =~ m{<\/script>} ) {
if ( $has_kohaTable && $has_tt_tags ) {