From 19d1db91d241250f42af75c3c7eacea26da13228 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 11 Jun 2026 17:23:58 +0100 Subject: [PATCH] Bug 42443: (QA follow-up) Fix escaping of branchcode in JS context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using | html to embed a TT value inside a JS string literal is incorrect: it produces HTML entities rather than JS-safe characters. Store the branchcode in a data attribute (where | html is correct) and read it from there in JavaScript. Signed-off-by: Martin Renvoize Signed-off-by: Tomás Cohen Arazi Signed-off-by: Pedro Amorim --- .../prog/en/modules/circ/transferstoreceive.tt | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt index 53cd066749..fa84028a0a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt @@ -39,7 +39,7 @@ [% IF ( TransfersMaxDaysWarning ) %]

Transfers are considered late after [% TransfersMaxDaysWarning | html %] days.

[% END %]
-
+
@@ -68,7 +68,7 @@