From 83b66e327878ba98ddcd27c67f3b0b603c9e09e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wr=C3=B3blewski?= Date: Wed, 8 Nov 2023 10:13:38 +0100 Subject: [PATCH] fix: non-batch button actions marked as identifier holders --- src/Resources/views/themes/base.html.twig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Resources/views/themes/base.html.twig b/src/Resources/views/themes/base.html.twig index 8f57dd0b..8679a02e 100755 --- a/src/Resources/views/themes/base.html.twig +++ b/src/Resources/views/themes/base.html.twig @@ -501,10 +501,11 @@ {% endblock %} {% block action_button_value %} - {% set attr = { - href, target, - 'data-kreyu--data-table-bundle--batch-target': 'identifierHolder' - }|merge(attr) %} + {% set attr = { href, target }|merge(attr|default({})) %} + + {% if batch %} + {% set attr = { 'data-kreyu--data-table-bundle--batch-target': 'identifierHolder' }|merge(attr) %} + {% endif %} {% with { attr: {} } %}{{- block('action_value', theme, _context) -}}{% endwith %}