Skip to content

Commit

Permalink
Added details to the contact created by create_individual
Browse files Browse the repository at this point in the history
  • Loading branch information
csalvador committed Jan 9, 2014
1 parent 68e42bc commit e959568
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions htdocs/societe/class/societe.class.php
Expand Up @@ -306,6 +306,12 @@ function create_individual($user) {
$contact->socid = $this->id; // fk_soc
$contact->statut = 1;
$contact->priv = 0;
$contact->country_id = $this->country_id;
$contact->address = $this->address;
$contact->email = $this->email;
$contact->zip = $this->zip;
$contact->town = $this->town;
$contact->phone_pro = $this->phone;
$result = $contact->create($user);
if ($result < 0) {
$this->error = $contact->error;
Expand Down

0 comments on commit e959568

Please sign in to comment.