瀏覽代碼

Fix "Undefined offset: -1"

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

+ 3 - 1
Resources/views/Form/form_admin_fields.html.twig

@@ -78,7 +78,9 @@ file that was distributed with this source code.
 
 {% block field_row %}
     {% if sonata_admin is not defined or not sonata_admin_enabled or not sonata_admin.field_description %}
-        {{ form_row(form) }}
+        {{ form_label(form, label|default(null)) }}
+        {{ form_errors(form) }}
+        {{ form_widget(form) }}
     {% else %}
         <div class="clearfix{% if errors|length > 0%} error{%endif%}" id="sonata-ba-field-container-{{ id }}">
             {% block label %}