This commit is contained in:
Regis Houssin 2006-06-20 13:42:11 +00:00
parent 70a7e1c8a7
commit 56d36676e7

View File

@ -202,6 +202,9 @@ if ($_POST['action'] == 'addligne' && $user->rights->commande->creer)
{
$commande = new Commande($db);
$ret=$commande->fetch($_POST['id']);
$soc = new Societe($db, $commande->socidp);
$soc->fetch($commande->socidp);
if ($ret < 0)
{
dolibarr_print_error($db,$commande->error);