소스 검색

[TwigBundle] Fixed variable reference in the errors block of the form.twig template

Bernhard Schussek 14 년 전
부모
커밋
6176063b30
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Symfony/Bundle/TwigBundle/Resources/views/form.twig

+ 2 - 2
src/Symfony/Bundle/TwigBundle/Resources/views/form.twig

@@ -13,9 +13,9 @@
 {% endblock field_group %}
 
 {% block errors %}
-    {% if errors %}
+    {% if field.hasErrors %}
     <ul>
-        {% for error in errors %}
+        {% for error in field.errors %}
             <li>{% trans error.0 with error.1 from validators %}</li>
         {% endfor %}
     </ul>