Ajout syslog
This commit is contained in:
parent
b51ad52ca0
commit
02f7dddb3a
@ -106,6 +106,7 @@ class Contact
|
|||||||
$soc->fetch($this->socid);
|
$soc->fetch($this->socid);
|
||||||
$this->phone_pro = $soc->tel;
|
$this->phone_pro = $soc->tel;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."socpeople SET ";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."socpeople SET ";
|
||||||
$sql .= " civilite='$this->civilite_id'";
|
$sql .= " civilite='$this->civilite_id'";
|
||||||
$sql .= ", name='$this->name'";
|
$sql .= ", name='$this->name'";
|
||||||
@ -121,7 +122,9 @@ class Contact
|
|||||||
$sql .= ", phone_perso = '$this->phone_perso'";
|
$sql .= ", phone_perso = '$this->phone_perso'";
|
||||||
$sql .= ", phone_mobile = '$this->phone_mobile'";
|
$sql .= ", phone_mobile = '$this->phone_mobile'";
|
||||||
$sql .= ", jabberid = '$this->jabberid'";
|
$sql .= ", jabberid = '$this->jabberid'";
|
||||||
if ($user) {
|
|
||||||
|
if ($user)
|
||||||
|
{
|
||||||
$sql .= ", fk_user_modif='".$user->id."'";
|
$sql .= ", fk_user_modif='".$user->id."'";
|
||||||
}
|
}
|
||||||
$sql .= " WHERE idp=$id";
|
$sql .= " WHERE idp=$id";
|
||||||
@ -140,7 +143,7 @@ class Contact
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Mise à jour de l'arbre ldap
|
* Mise à jour de l'arbre ldap
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -396,6 +399,11 @@ class Contact
|
|||||||
$this->facturation = 0;
|
$this->facturation = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dolibarr_syslog("Error in Contact::fetch() id=$_id");
|
||||||
|
}
|
||||||
|
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
|
|
||||||
if ($user)
|
if ($user)
|
||||||
@ -415,6 +423,7 @@ class Contact
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $this->db->error();
|
print $this->db->error();
|
||||||
|
dolibarr_syslog("Error in Contact::fetch() id=$_id");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user