Debug v20

This commit is contained in:
Laurent Destailleur
2024-05-29 12:26:04 +02:00
parent e2e96d4d75
commit 48c5d9b0bc
10 changed files with 82 additions and 60 deletions

View File

@@ -1486,7 +1486,7 @@ abstract class CommonObject
$sql = "SELECT ec.rowid, ec.statut as statuslink, ec.fk_socpeople as id, ec.fk_c_type_contact"; // This field contains id of llx_socpeople or id of llx_user
if ($source == 'internal') {
$sql .= ", '-1' as socid, t.statut as statuscontact, t.login, t.photo";
$sql .= ", '-1' as socid, t.statut as statuscontact, t.login, t.photo, t.gender";
}
if ($source == 'external' || $source == 'thirdparty') {
$sql .= ", t.fk_soc as socid, t.statut as statuscontact";
@@ -1548,6 +1548,7 @@ abstract class CommonObject
'email' => $obj->email,
'login' => (empty($obj->login) ? '' : $obj->login),
'photo' => (empty($obj->photo) ? '' : $obj->photo),
'gender' => (empty($obj->gender) ? '' : $obj->gender),
'statuscontact' => $obj->statuscontact,
'rowid' => $obj->rowid,
'code' => $obj->code,