diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 7546742181c..467947cf1a3 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1808,6 +1808,8 @@ else * Lines */ $result = $object->getLinesArray(); + + $numlines = count($object->lines); if ($conf->use_javascript_ajax && $object->statut == 0) {