From 75d66cd266c59c85cdeceeba84a78f73acdd89d0 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 --- .../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 b4ad503620..3e792012f0 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