From b28fced8813c6db7d401541ea444402819a2554e Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 11 May 2022 07:06:55 +0000 Subject: [PATCH] Bug 22990: Fix template toolkit syntax issues in shelves_results.tt Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- .../prog/en/modules/virtualshelves/tables/shelves_results.tt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt index 0b7152072b..21b6fcf70f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt @@ -39,7 +39,7 @@ [%~ public = public | html ~%] [%~ IF can_manage_shelf ~%] [%~ action_block = '
' ~%] - [%~ action_block = action_block _ '[% INCLUDE 'csrf-token.inc' %]' ~%] + [%~ action_block = BLOCK ~%][%~ action_block | $raw ~%][%~ INCLUDE 'csrf-token.inc' | trim ~%][%~ END ~%] [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] @@ -49,7 +49,7 @@ [%~ END ~%] [%~ IF can_delete_shelf ~%] [%~ action_block = action_block _ ' ' ~%] - [%~ action_block = action_block _ '[% INCLUDE 'csrf-token.inc' %]' ~%] + [%~ action_block = BLOCK ~%][%~ action_block | $raw ~%][%~ INCLUDE 'csrf-token.inc' | trim ~%][%~ END ~%] [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] @@ -72,4 +72,5 @@ [%~ SET action_block = 'None' ~%] [%~ END ~%] [%~ To.json(action_block) | $raw ~%] + [%~ END ~%] -- 2.30.2