diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php index 7d6e3d6f78f..8224a2abae8 100644 --- a/htdocs/commande/contact.php +++ b/htdocs/commande/contact.php @@ -250,8 +250,11 @@ if ($id > 0) print ''; // Customer + if ( is_null($commande->client) ) + $commande->fetch_client(); + print "".$langs->trans("Company").""; - print ''.$soc->getNomUrl(1).''; + print ''.$commande->client->getNomUrl(1).''; print ""; print '';