소스 검색

Fix label_format not defined (Symfony < 2.6)

Alan Poulain 10 년 전
부모
커밋
964b922665
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,