fix contact creation

This commit is contained in:
Peter Fontaine 2013-11-14 17:16:27 +01:00
parent 2e5320a532
commit 5a1df20c80
2 changed files with 6 additions and 1 deletions

View File

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

View File

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