Fix : emailcollector must use socid to link event to thirdparty (instead of fk_soc)
This commit is contained in:
parent
8c5ddd1108
commit
6bd9484911
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue