fix contact creation
This commit is contained in:
parent
2e5320a532
commit
5a1df20c80
@ -40,6 +40,7 @@ class Contact extends CommonObject
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $id;
|
||||
var $ref_ext;
|
||||
var $civilite_id; // In fact we store civility_code
|
||||
var $lastname;
|
||||
var $firstname;
|
||||
@ -64,9 +65,13 @@ class Contact extends CommonObject
|
||||
var $code;
|
||||
var $email;
|
||||
var $skype;
|
||||
var $jabberid;
|
||||
var $phone_pro;
|
||||
var $phone_perso;
|
||||
var $phone_mobile;
|
||||
var $fax;
|
||||
|
||||
var $priv;
|
||||
|
||||
var $birthday;
|
||||
var $default_lang;
|
||||
|
||||
@ -266,7 +266,7 @@ if (empty($reshook))
|
||||
$contact->state_id = $object->state_id;
|
||||
$contact->country_id = $object->country_id;
|
||||
$contact->socid = $object->id; // fk_soc
|
||||
$contact->status = 1;
|
||||
$contact->statut = 1;
|
||||
$contact->email = $object->email;
|
||||
$contact->skype = $object->skype;
|
||||
$contact->phone_pro = $object->phone;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user