Skip to content

Commit 981fb76

Browse files
committed
fix #2
Signed-off-by: Oleg Andreyev <[email protected]>
1 parent c5bc660 commit 981fb76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/crud/index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
{% set ea_sort_asc = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Config\\Option\\SortOrder::ASC') %}
108108
{% set ea_sort_desc = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Config\\Option\\SortOrder::DESC') %}
109-
{% for field in fields|filter(f => f.isAccessible) %}
109+
{% for field in fields %}
110110
{% set is_searchable = null == ea.crud.searchFields or field.property in ea.crud.searchFields %}
111111
{% set is_sorting_field = ea.search.isSortingField(field.property) %}
112112
{% set next_sort_direction = is_sorting_field ? (ea.search.sortDirection(field.property) == ea_sort_desc ? ea_sort_asc : ea_sort_desc) : ea_sort_desc %}

0 commit comments

Comments
 (0)