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:
@@ -2034,7 +2034,7 @@ class EmailCollector extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (get_class($objectemail) != 'Societe') {
|
if (get_class($objectemail) != 'Societe') {
|
||||||
$thirdpartyid = $objectemail->fk_soc;
|
$thirdpartyid = $objectemail->fk_soc ?? $objectemail->socid;
|
||||||
} else {
|
} else {
|
||||||
$thirdpartyid = $objectemail->id;
|
$thirdpartyid = $objectemail->id;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user