diff --git a/src/Resources/views/theme/bootstrap5/datagrid-table.html.twig b/src/Resources/views/theme/bootstrap5/datagrid-table.html.twig index 6ea0af5..96bcc6f 100644 --- a/src/Resources/views/theme/bootstrap5/datagrid-table.html.twig +++ b/src/Resources/views/theme/bootstrap5/datagrid-table.html.twig @@ -22,17 +22,19 @@ {% endif %} - {% if column.sortable is not null %} - {% set sortUrl = path( - grid.pagination.route, - grid.pagination.params|merge({ - 'sort_by': column.sortable, - 'sort_order': app.request.get('sort_order') == 'ASC' ? 'DESC' : 'ASC' - }) - ) %} - {{ column.name }} - {% else %} - {{ column.name }} + {% if not (column.name starts with '_') %} + {% if column.sortable is not null %} + {% set sortUrl = path( + grid.pagination.route, + grid.pagination.params|merge({ + 'sort_by': column.sortable, + 'sort_order': app.request.get('sort_order') == 'ASC' ? 'DESC' : 'ASC' + }) + ) %} + {{ column.name }} + {% else %} + {{ column.name }} + {% endif %} {% endif %} {% endfor %}