瀏覽代碼

fix twig error

pomaxa 13 年之前
父節點
當前提交
98e78f5d8c
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      Resources/views/Form/form_admin_fields.html.twig

+ 0 - 4
Resources/views/Form/form_admin_fields.html.twig

@@ -77,9 +77,6 @@ file that was distributed with this source code.
 {% endblock choice_widget %}
 
 {% block field_row %}
-    {% if sonata_admin is not defined or not sonata_admin_enabled or not sonata_admin.field_description %}
-        {{ parent() }}
-    {% else %}
         <div class="clearfix{% if errors|length > 0%} error{%endif%}" id="sonata-ba-field-container-{{ id }}">
             {% block label %}
                 {% if sonata_admin.field_description.options.name is defined %}
@@ -104,7 +101,6 @@ file that was distributed with this source code.
                 {% endif %}
             </div>
         </div>
-    {% endif %}
 {% endblock field_row %}
 
 {% block collection_widget_row %}