From 3b2221a3cfdc1e54eda4c81ea37ab8d71d089bc0 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 Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi (cherry picked from commit fd69581fcf743c6720cc8b5fba687f75fc613321) Signed-off-by: Fridolin Somers --- .../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 62216f4d6e..e37b39f966 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.39.5