From 511752405b75b047d2e484e6acc1dc9e1cd123d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sun, 26 Jan 2025 20:49:10 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20template=20table,=20id=20des=20colonnes?= =?UTF-8?q?=20mal=20plac=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/template.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index c4883eaa..541888f0 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -884,6 +884,10 @@ class template $html = '
'; // Début tableau $html .= ''; + // Pas de tableau d'Id transmis, générer une numérotation + if (empty($rowsId)) { + $rowsId = range(0, count($body)); + } // Entêtes if ($head) { // Début des entêtes @@ -891,21 +895,17 @@ class template $html .= ''; $i = 0; foreach ($head as $th) { - $html .= ''; + $html .= ''; } // Fin des entêtes $html .= ''; $html .= ''; } - // Pas de tableau d'Id transmis, générer une numérotation - if (empty($rowsId)) { - $rowsId = range(0, count($body)); - } // Début contenu $j = 0; foreach ($body as $tr) { // Id de ligne pour les tableaux drag and drop - $html .= ''; + $html .= ''; $i = 0; foreach ($tr as $td) { $html .= '';
' . $th . '' . $th . '
' . $td . '