From 7707182c598a9b93929892438ad342604f44badf Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 9 Jan 2012 18:00:06 +0800 Subject: [PATCH] =?UTF-8?q?[bug=20#275]=20Ajout=20contacts=20-=20choix=20p?= =?UTF-8?q?ar=20"par=20d=C3=A9faut"=20de=20l'entreprise=20du=20fournisseur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/commande/contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/contact.php b/htdocs/fourn/commande/contact.php index 8acd2588831..c64d317d08e 100644 --- a/htdocs/fourn/commande/contact.php +++ b/htdocs/fourn/commande/contact.php @@ -267,7 +267,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; - $selectedCompany = isset($_GET["newcompany"])?$_GET["newcompany"]:$commande->client->id; + $selectedCompany = isset($_GET["newcompany"])?$_GET["newcompany"]:$soc->id; $selectedCompany = $formcompany->selectCompaniesForNewContact($commande, 'id', $selectedCompany, 'newcompany'); print '';