From 223f307bbeff07bc832346edb87bb97a0bb9dd8b 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 --- .../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