Fix: Can validate an order with amount of 0

This commit is contained in:
Laurent Destailleur 2008-03-04 08:52:21 +00:00
parent a5087a7eaf
commit 6fa2bf13f7

View File

@ -1531,6 +1531,8 @@ else
$i++; $i++;
} }
$db->free($resql); $db->free($resql);
$numlines=$num;
} }
else else
{ {
@ -1657,7 +1659,7 @@ else
print '<div class="tabsAction">'; print '<div class="tabsAction">';
// Valid // Valid
if ($commande->statut == 0 && $commande->total_ttc > 0 && $user->rights->commande->valider) if ($commande->statut == 0 && $numlines > 0 && $user->rights->commande->valider)
{ {
print '<a class="butAction" '; print '<a class="butAction" ';
if ($conf->use_javascript_ajax && $conf->global->MAIN_CONFIRM_AJAX) if ($conf->use_javascript_ajax && $conf->global->MAIN_CONFIRM_AJAX)