Parcourir la source

added a check on ajax request to change to colspan

matteosister il y a 13 ans
Parent
commit
ee6280144c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Resources/views/CRUD/base_list.html.twig

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

@@ -69,7 +69,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 }}
                             {% if admin.isGranted("EXPORT") and admin.getExportFormats()|length %}
                                 -