diff --git a/Resources/views/CRUD/edit_mongo_one.html.twig b/Resources/views/CRUD/edit_mongo_one.html.twig index 7a47a011..fb819a17 100644 --- a/Resources/views/CRUD/edit_mongo_one.html.twig +++ b/Resources/views/CRUD/edit_mongo_one.html.twig @@ -24,12 +24,12 @@ file that was distributed with this source code. {% if sonata_admin.edit == 'list' %} {% if sonata_admin.admin.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') }} diff --git a/Resources/views/Form/form_admin_fields.html.twig b/Resources/views/Form/form_admin_fields.html.twig index 628ec730..23e1d65e 100644 --- a/Resources/views/Form/form_admin_fields.html.twig +++ b/Resources/views/Form/form_admin_fields.html.twig @@ -51,12 +51,12 @@ 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') }} diff --git a/composer.json b/composer.json index 855c289a..60fcda2c 100644 --- a/composer.json +++ b/composer.json @@ -18,8 +18,8 @@ ], "require": { "doctrine/mongodb-odm-bundle": "~3.0", - "doctrine/mongodb-odm": "~1.0", - "sonata-project/admin-bundle": "~2.3" + "sonata-project/admin-bundle": "~2.3.0", + "symfony/security-acl": "~2.2|~3.0" }, "require-dev": { "jmikola/geojson": "~1.0",