diff --git a/htdocs/soc.php b/htdocs/soc.php index 78f66fa522c..244469b9755 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -167,7 +167,8 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) $contact->fk_pays=$soc->fk_pays; $contact->socid=$soc->id; // fk_soc $contact->status=1; - $contact->priv=0; + $contact->email=$soc->email; + $contact->priv=0; $result=$contact->create($user); }