Skip to content

Commit

Permalink
Replace deprecated render tag with function (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeantristan authored and greg0ire committed Aug 2, 2016
1 parent 1157efc commit 7b3a9f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Resources/views/Form/form_admin_fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ file that was distributed with this source code.
<span id="field_actions_{{ id }}" class="field-actions">
<span id="field_widget_{{ id }}" class="field-short-description">
{% 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 %}
<span class="inner-field-short-description">
{{ sonata_admin.field_description.options.placeholder|trans({}, 'SonataAdminBundle') }}
Expand Down

0 comments on commit 7b3a9f7

Please sign in to comment.