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