瀏覽代碼

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

Anton Zlotnikov 8 年之前
父節點
當前提交
59ed5a9fae
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 %}