From 5a1df20c808f323125b1f08b84c3f7d116fabbe0 Mon Sep 17 00:00:00 2001 From: Peter Fontaine Date: Thu, 14 Nov 2013 17:16:27 +0100 Subject: [PATCH] fix contact creation --- htdocs/contact/class/contact.class.php | 5 +++++ htdocs/societe/soc.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index ef2cfba8480..f00d637d375 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -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; diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 9001894c149..07610bb88ba 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -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;