From 9d7031035e2724583096c78aa21d6cffb9b535aa 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 (cherry picked from commit 6f820f0f6b07eff3f2c4ad8c2d3d4dd909dd47b6) Signed-off-by: Matt Blenkinsop --- .../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.20.1