diff --git a/htdocs/contact/canvas/actions_contactcard_common.class.php b/htdocs/contact/canvas/actions_contactcard_common.class.php
index 0e80df07676..f63f25b2a18 100644
--- a/htdocs/contact/canvas/actions_contactcard_common.class.php
+++ b/htdocs/contact/canvas/actions_contactcard_common.class.php
@@ -283,10 +283,7 @@ abstract class ActionsContactCardCommon
// phpcs:enable
global $langs, $mysoc;
- $this->object->old_name = GETPOST("old_name");
- $this->object->old_firstname = GETPOST("old_firstname");
-
- $this->object->socid = GETPOST("socid");
+ $this->object->socid = GETPOST("socid", 'int');
$this->object->lastname = GETPOST("name");
$this->object->firstname = GETPOST("firstname");
$this->object->civility_id = GETPOST("civility_id");
@@ -301,7 +298,6 @@ abstract class ActionsContactCardCommon
$this->object->phone_mobile = GETPOST("phone_mobile");
$this->object->fax = GETPOST("fax");
$this->object->email = GETPOST("email");
- $this->object->jabberid = GETPOST("jabberid");
$this->object->priv = GETPOST("priv");
$this->object->note = GETPOST("note", "restricthtml");
$this->object->canvas = GETPOST("canvas");
diff --git a/htdocs/contact/canvas/default/tpl/contactcard_create.tpl.php b/htdocs/contact/canvas/default/tpl/contactcard_create.tpl.php
index bd5cf24e195..a6c134d0a9a 100644
--- a/htdocs/contact/canvas/default/tpl/contactcard_create.tpl.php
+++ b/htdocs/contact/canvas/default/tpl/contactcard_create.tpl.php
@@ -109,11 +109,6 @@ echo $this->control->tpl['ajax_selectcountry']; ?>
| ';
$sql = 'SELECT rowid, socialnetworks';
- $sql .= ', jabberid, skype, twitter, facebook, linkedin, instagram, snapchat, googleplus, youtube, whatsapp FROM '.MAIN_DB_PREFIX.'socpeople WHERE ';
+ $sql .= ', jabberid, skype, twitter, facebook, linkedin, instagram, snapchat, googleplus, youtube, whatsapp FROM '.MAIN_DB_PREFIX.'socpeople WHERE';
$sql .= " jabberid IS NOT NULL OR jabberid <> ''";
$sql .= " OR skype IS NOT NULL OR skype <> ''";
$sql .= " OR twitter IS NOT NULL OR twitter <> ''";
diff --git a/htdocs/webservices/server_contact.php b/htdocs/webservices/server_contact.php
index a28371443d5..37d86dcded9 100644
--- a/htdocs/webservices/server_contact.php
+++ b/htdocs/webservices/server_contact.php
@@ -492,8 +492,7 @@ function getContactsForThirdParty($authentication, $idthirdparty)
$sql .= " c.fk_pays as country_id,";
$sql .= " c.fk_departement as state_id,";
$sql .= " c.birthday,";
- $sql .= " c.poste, c.phone, c.phone_perso, c.phone_mobile, c.fax, c.email, c.jabberid,";
- //$sql.= " c.priv, c.note, c.default_lang, c.canvas,";
+ $sql .= " c.poste, c.phone, c.phone_perso, c.phone_mobile, c.fax, c.email,";
$sql .= " co.label as country, co.code as country_code,";
$sql .= " d.nom as state, d.code_departement as state_code,";
$sql .= " u.rowid as user_id, u.login as user_login,";
@@ -545,7 +544,6 @@ function getContactsForThirdParty($authentication, $idthirdparty)
'phone_mobile' => $contact->phone_mobile ? $contact->phone_mobile : '',
'email' => $contact->email ? $contact->email : '',
- 'jabberid' => $contact->jabberid ? $contact->jabberid : '',
'priv' => $contact->priv ? $contact->priv : '',
'mail' => $contact->mail ? $contact->mail : '',
|