소스 검색

Used the elements variable inside the show action template, instead of using admin.show.

Roger Llopart Pla 13 년 전
부모
커밋
c0fa0f588c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Resources/views/CRUD/base_show.html.twig

+ 2 - 2
Resources/views/CRUD/base_show.html.twig

@@ -46,8 +46,8 @@ file that was distributed with this source code.
 
                 {% for field_name in view_group.fields %}
                     <tr class="sonata-ba-view-container">
-                        {% if admin.show[field_name] is defined %}
-                            {{ admin.show[field_name]|render_view_element(object) }}
+                        {% if elements[field_name] is defined %}
+                            {{ elements[field_name]|render_view_element(object) }}
                         {% endif %}
                     </tr>
                 {% endfor %}