2
0
forked from Wavyzz/dolibarr

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

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