From 6fa2bf13f775b2e5be117154fedab5b1b9f5b784 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 Mar 2008 08:52:21 +0000 Subject: [PATCH] Fix: Can validate an order with amount of 0 --- htdocs/commande/fiche.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)