[Form][TwigBridge] Don't render _method in form_rest() for a child form

This commit is contained in:
fmarchalemisys 2017-07-24 16:01:47 +02:00 committed by Maxime Steinhausser
parent ee58cfcf10
commit 973b2d3973
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@
{% endif %}
{%- endfor %}
{% if not form.methodRendered %}
{% if not form.methodRendered and form.parent is null %}
{%- do form.setMethodRendered() -%}
{% set method = method|upper %}
{%- if method in ["GET", "POST"] -%}