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 ' | ';