diff --git a/Resources/views/Form/form_admin_fields.html.twig b/Resources/views/Form/form_admin_fields.html.twig index 628ec730..f2e0030c 100644 --- a/Resources/views/Form/form_admin_fields.html.twig +++ b/Resources/views/Form/form_admin_fields.html.twig @@ -51,12 +51,11 @@ file that was distributed with this source code. {% if sonata_admin.field_description.associationadmin.id(sonata_admin.value) %} - {% render url('sonata_admin_short_object_information', { + {{ render(url('sonata_admin_short_object_information', { 'code': sonata_admin.field_description.associationadmin.code, 'objectId': sonata_admin.field_description.associationadmin.id(sonata_admin.value), 'uniqid': sonata_admin.field_description.associationadmin.uniqid - } - )%} + })) }} {% elseif sonata_admin.field_description.options.placeholder is defined and sonata_admin.field_description.options.placeholder %} {{ sonata_admin.field_description.options.placeholder|trans({}, 'SonataAdminBundle') }}