Fix: When creating a personal third party, email was lost

This commit is contained in:
Laurent Destailleur 2008-05-28 18:07:30 +00:00
parent c197d3c9ed
commit c46a35292b

View File

@ -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);
}