Fix : emailcollector must use socid to link event to thirdparty (instead of fk_soc)

This commit is contained in:
Maxime Kohlhaas 2023-08-14 10:24:40 +02:00
parent 8c5ddd1108
commit 6bd9484911

View file

@ -2034,7 +2034,7 @@ class EmailCollector extends CommonObject
}
if (get_class($objectemail) != 'Societe') {
$thirdpartyid = $objectemail->fk_soc;
$thirdpartyid = $objectemail->fk_soc ?? $objectemail->socid;
} else {
$thirdpartyid = $objectemail->id;
}