Browse Source

Fix non-existent variable "action" in base_list_field.html.twig (#4396)

Anton Zlotnikov 8 năm trước cách đây
mục cha
commit
59ed5a9fae
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Resources/views/CRUD/base_list_field.html.twig

+ 1 - 1
Resources/views/CRUD/base_list_field.html.twig

@@ -16,7 +16,7 @@ file that was distributed with this source code.
         field_description.options.identifier is defined
         and route
         and admin.hasRoute(route)
-        and admin.hasAccess(route, action in ['show', 'edit'] ? object : null)
+        and admin.hasAccess(route, route in ['show', 'edit'] ? object : null)
     %}
         <a class="sonata-link-identifier" href="{{ admin.generateObjectUrl(route, object, field_description.options.route.parameters) }}">
             {%- block field %}