浏览代码

[TwigBridge] fixed the check for the collection prototype in the form theme

Christophe Coevoet 14 年之前
父节点
当前提交
df0039f701
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bridge/Twig/Resources/views/Form/div_layout.html.twig

+ 1 - 1
src/Symfony/Bridge/Twig/Resources/views/Form/div_layout.html.twig

@@ -263,7 +263,7 @@
 {% block collection_widget %}
 {% spaceless %}
     {{ block('form_widget') }}
-    {% if prototype %}
+    {% if prototype is defined %}
     <script type="text/html" id="{{ id }}_prototype">{{ form_row(prototype) }}</script>
     {% endif %}
 {% endspaceless %}