Merge pull request #25627 from atm-maxime/fix_emailcoll_socid

Fix : emailcollector must use socid to link event to thirdparty (instead of fk_soc)
This commit is contained in:
Laurent Destailleur 2023-08-16 01:41:57 +02:00 committed by GitHub
commit e0da8a2109
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}