|
@@ -12,7 +12,7 @@ file that was distributed with this source code.
|
|
|
<td class="sonata-ba-list-field sonata-ba-list-field-{{ field_description.type }}" objectId="{{ admin.id(object) }}">
|
|
|
{% if field_description.options.identifier is defined and admin.isGranted(['EDIT', 'SHOW']) %}
|
|
|
|
|
|
- {% if field_description.options.route == 'edit' and admin.hasroute('edit') and admin.isGranted('EDIT') %}
|
|
|
+ {% if field_description.options.route.name == 'edit' and admin.hasroute('edit') and admin.isGranted('EDIT') %}
|
|
|
<a href="{{ admin.generateObjectUrl('edit', object) }}">
|
|
|
{% elseif admin.hasroute('show') %}
|
|
|
<a href="{{ admin.generateObjectUrl('show', object) }}">
|