diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index da1d0f9469e..83206e63911 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1531,6 +1531,8 @@ else $i++; } $db->free($resql); + + $numlines=$num; } else { @@ -1657,7 +1659,7 @@ else print '
'; // Valid - if ($commande->statut == 0 && $commande->total_ttc > 0 && $user->rights->commande->valider) + if ($commande->statut == 0 && $numlines > 0 && $user->rights->commande->valider) { print 'use_javascript_ajax && $conf->global->MAIN_CONFIRM_AJAX)