Browse Source

manually apply https://github.com/sonata-project/SonataAdminBundle/pull/855

Thomas Rabaix 12 years ago
parent
commit
f734fbcbc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Resources/views/CRUD/base_list.html.twig

+ 1 - 1
Resources/views/CRUD/base_list.html.twig

@@ -71,7 +71,7 @@ file that was distributed with this source code.
                     <tr>
                     <tr>
                         <th colspan="{{ admin.list.elements|length - (app.request.isXmlHttpRequest ? 2 : 1) }}">
                         <th colspan="{{ admin.list.elements|length - (app.request.isXmlHttpRequest ? 2 : 1) }}">
                             {{ admin.datagrid.pager.page }} / {{ admin.datagrid.pager.lastpage }}
                             {{ admin.datagrid.pager.page }} / {{ admin.datagrid.pager.lastpage }}
-                            {% if admin.isGranted("EXPORT") and admin.getExportFormats()|length %}
+                            {% if admin.hasRoute('export') and admin.isGranted("EXPORT") and admin.getExportFormats()|length %}
                                 -
                                 -
                                 {{ "label_export_download"|trans({}, "SonataAdminBundle") }}
                                 {{ "label_export_download"|trans({}, "SonataAdminBundle") }}
                                 {% for format in admin.getExportFormats() %}
                                 {% for format in admin.getExportFormats() %}