فهرست منبع

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 %}
 {% block field_row %}
     {% if sonata_admin is not defined or not sonata_admin_enabled or not sonata_admin.field_description %}
     {% 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 %}
     {% else %}
         <div class="clearfix{% if errors|length > 0%} error{%endif%}" id="sonata-ba-field-container-{{ id }}">
         <div class="clearfix{% if errors|length > 0%} error{%endif%}" id="sonata-ba-field-container-{{ id }}">
             {% block label %}
             {% block label %}