From e3a4fe0ce5dc2826490f2bff1743bd22e75e2f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radim=20Vaculi=CC=81k?= Date: Sun, 22 Feb 2026 14:07:50 +0100 Subject: [PATCH] Fix: Hide filter row when all filterable columns are hidden (#1108) Replace !empty(\$filters) with array_intersect_key(\$filters, \$columns) so the filter and group-action rowspan only render when at least one filter belongs to a currently visible column. --- src/templates/datagrid.latte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/datagrid.latte b/src/templates/datagrid.latte index bcc111ba..5ea71702 100644 --- a/src/templates/datagrid.latte +++ b/src/templates/datagrid.latte @@ -140,7 +140,7 @@ - + {foreach $columns as $key => $column} @@ -199,7 +199,7 @@ {='contributte_datagrid.action'|translate} - + {foreach $columns as $key => $column} {var $th = $column->getElementForRender('th', $key)} {$th->startTag()|noescape}