Skip to content

Commit

Permalink
Merge pull request sonata-project#3490 from hason/enctype
Browse files Browse the repository at this point in the history
Fixed compatibility with Symfony 3.0
  • Loading branch information
OskarStark committed Dec 15, 2015
2 parents dc535f0 + 9eb3daa commit 76e0b76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/views/CRUD/base_acl_macro.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ file that was distributed with this source code.

{% macro render_form(form, permissions, td_type, admin, admin_pool, object) %}
<form class="form-horizontal"
action="{{ admin.generateUrl('acl', {'id': admin.id(object), 'uniqid': admin.uniqid, 'subclass': app.request.get('subclass')}) }}" {{ form_enctype(form) }}
action="{{ admin.generateUrl('acl', {'id': admin.id(object), 'uniqid': admin.uniqid, 'subclass': app.request.get('subclass')}) }}"
{% if form.vars.multipart %} enctype="multipart/form-data"{% endif %}
method="POST"
{% if not admin_pool.getOption('html5_validate') %}novalidate="novalidate"{% endif %}
>
Expand Down

0 comments on commit 76e0b76

Please sign in to comment.