From 56d36676e7f16d4f4a9e645e8bcb109b6be1713f Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 20 Jun 2006 13:42:11 +0000 Subject: [PATCH] bugfix --- htdocs/commande/fiche.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 8f7356341bc..b8249add356 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -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);