From 1ee7ad6ab72f70c4d067f73a4e8f626447a1f6dd Mon Sep 17 00:00:00 2001 From: dowitsch Date: Mon, 15 Apr 2024 16:15:26 +0200 Subject: [PATCH] fix: check defintion and exporters for show export button decicion --- src/Resources/views/tailwind_2/_header.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/views/tailwind_2/_header.html.twig b/src/Resources/views/tailwind_2/_header.html.twig index f86b076..f011f68 100644 --- a/src/Resources/views/tailwind_2/_header.html.twig +++ b/src/Resources/views/tailwind_2/_header.html.twig @@ -10,7 +10,7 @@ {% endif %}
- {% if view is defined and view.definition.hasCapability(constant('araise\\CrudBundle\\Enums\\Page::EXPORT')) %} + {% if table.exporters|length > 0 and table.option('definition') and table.option('definition').hasCapability(constant('araise\\CrudBundle\\Enums\\Page::EXPORT')) %}