Browse Source

Merge pull request #635 from matteosister/wrong-colspan-in-ajax-popup

Wrong colspan in ajax popup
Thomas 13 năm trước cách đây
mục cha
commit
39e78bb31c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Resources/views/CRUD/base_list.html.twig

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

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