Fix web service_contact.php civilite_id vs civility_id
This commit is contained in:
parent
ec8cee4d41
commit
6985a4fe3b
@ -300,7 +300,7 @@ function getContact($authentication,$id,$ref='',$ref_ext='')
|
|||||||
'ref_propal' => $contact->ref_propal,
|
'ref_propal' => $contact->ref_propal,
|
||||||
'user_id' => $contact->user_id,
|
'user_id' => $contact->user_id,
|
||||||
'user_login' => $contact->user_login,
|
'user_login' => $contact->user_login,
|
||||||
'civility_id' => $contact->civility_id
|
'civilite_id' => $contact->civility_id
|
||||||
);
|
);
|
||||||
|
|
||||||
//Retreive all extrafield for thirdsparty
|
//Retreive all extrafield for thirdsparty
|
||||||
@ -379,7 +379,7 @@ function createContact($authentication,$contact)
|
|||||||
$newobject=new Contact($db);
|
$newobject=new Contact($db);
|
||||||
|
|
||||||
$newobject->id=$contact['id'];
|
$newobject->id=$contact['id'];
|
||||||
$newobject->civility_id=$contact['civility_id'];
|
$newobject->civilite_id=$contact['civility_id'];
|
||||||
$newobject->lastname=$contact['lastname'];
|
$newobject->lastname=$contact['lastname'];
|
||||||
$newobject->firstname=$contact['firstname'];
|
$newobject->firstname=$contact['firstname'];
|
||||||
$newobject->address=$contact['address'];
|
$newobject->address=$contact['address'];
|
||||||
@ -522,7 +522,7 @@ function getContactsForThirdParty($authentication,$idthirdparty)
|
|||||||
$linescontact[]=array(
|
$linescontact[]=array(
|
||||||
'id' => $contact->id,
|
'id' => $contact->id,
|
||||||
'ref' => $contact->ref,
|
'ref' => $contact->ref,
|
||||||
'civility_id' => $contact->civility_id?$contact->civility_id:'',
|
'civility_id' => $contact->civilite_id?$contact->civilite_id:'',
|
||||||
'lastname' => $contact->lastname?$contact->lastname:'',
|
'lastname' => $contact->lastname?$contact->lastname:'',
|
||||||
'firstname' => $contact->firstname?$contact->firstname:'',
|
'firstname' => $contact->firstname?$contact->firstname:'',
|
||||||
'address' => $contact->address?$contact->address:'',
|
'address' => $contact->address?$contact->address:'',
|
||||||
@ -653,6 +653,8 @@ function updateContact($authentication,$contact)
|
|||||||
$object->fax=$contact['fax'];
|
$object->fax=$contact['fax'];
|
||||||
$object->email=$contact['email'];
|
$object->email=$contact['email'];
|
||||||
|
|
||||||
|
$object->civilite_id=$contact['civility_id'];
|
||||||
|
|
||||||
|
|
||||||
//Retreive all extrafield for contact
|
//Retreive all extrafield for contact
|
||||||
// fetch optionals attributes and labels
|
// fetch optionals attributes and labels
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user