Browse Source

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

Roger Llopart Pla 13 years ago
parent
commit
c0fa0f588c
1 changed files with 2 additions and 2 deletions
  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 %}
                 {% for field_name in view_group.fields %}
                     <tr class="sonata-ba-view-container">
                     <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 %}
                         {% endif %}
                     </tr>
                     </tr>
                 {% endfor %}
                 {% endfor %}