Bugzilla – Attachment 195166 Details for
Bug 41324
Tidy kohaTable block
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41324: Adjust test for bug 38365
33fb301.patch (text/plain), 957 bytes, created by
Jonathan Druart
on 2026-03-12 10:47:36 UTC
(
hide
)
Description:
Bug 41324: Adjust test for bug 38365
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-03-12 10:47:36 UTC
Size:
957 bytes
patch
obsolete
>From 33fb3011785e48b4b42dfb8b27205e292cec0faa Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 12 Mar 2026 11:34:01 +0100 >Subject: [PATCH] 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. >--- > xt/tt_kohaTable_tidy.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/xt/tt_kohaTable_tidy.t b/xt/tt_kohaTable_tidy.t >index 09951944396..25417d59484 100755 >--- a/xt/tt_kohaTable_tidy.t >+++ b/xt/tt_kohaTable_tidy.t >@@ -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 ) { >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41324
:
189994
|
189995
|
189996
|
191189
|
192723
|
192728
|
192729
| 195166