Sfoglia il codice sorgente

Merge pull request #3042 from alanpoulain/fix-label-format

Fix label_format not defined (Symfony < 2.6)
Sullivan SENECHAL 10 anni fa
parent
commit
bb84c5fbe3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Resources/views/Form/form_admin_fields.html.twig

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

@@ -99,7 +99,7 @@ file that was distributed with this source code.
         {% endif %}
 
         {% if label is empty %}
-            {%- if label_format is not empty -%}
+            {%- if label_format is defined and label_format is not empty -%}
                 {% set label = label_format|replace({
                     '%name%': name,
                     '%id%': id,