diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index d369b3f95f0..1d2631c0b6c 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -1687,6 +1687,9 @@ if ($resql) { print ''; } print ''; + if (!$i) { + $totalarray['nbfield']++; + } } if (!empty($arrayfields['p.ref']['checked'])) { @@ -2231,10 +2234,11 @@ if ($resql) { print ''; } print ''; + if (!$i) { + $totalarray['nbfield']++; + } } - if (!$i) { - $totalarray['nbfield']++; - } + print ''."\n"; diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php index 122d5702797..0ac8d109575 100644 --- a/htdocs/commande/list.php +++ b/htdocs/commande/list.php @@ -1973,6 +1973,10 @@ if ($resql) { } print ''; } + if (!$i) { + $totalarray['nbfield']++; + } + print ''; } // Ref @@ -2596,10 +2600,10 @@ if ($resql) { } print ''; } - } - print ''; - if (!$i) { - $totalarray['nbfield']++; + print ''; + if (!$i) { + $totalarray['nbfield']++; + } } print "\n"; diff --git a/htdocs/product/list.php b/htdocs/product/list.php index 21907974a0f..df9acd10cf7 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -1380,6 +1380,9 @@ if ($resql) { print ''; } print ''; + if (!$i) { + $totalarray['nbfield']++; + } } // Ref if (!empty($arrayfields['p.rowid']['checked'])) { @@ -1943,9 +1946,9 @@ if ($resql) { print ''; } print ''; - } - if (!$i) { - $totalarray['nbfield']++; + if (!$i) { + $totalarray['nbfield']++; + } } print "\n"; diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index c0f50a5e7b0..d5ef1057905 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -1486,6 +1486,9 @@ while ($i < min($num, $limit)) { print ''; } print ''; + if (!$i) { + $totalarray['nbfield']++; + } } if (!empty($arrayfields['s.rowid']['checked'])) { print ''; @@ -1803,9 +1806,9 @@ while ($i < min($num, $limit)) { print ''; } print ''; - } - if (!$i) { - $totalarray['nbfield']++; + if (!$i) { + $totalarray['nbfield']++; + } } print ''."\n";