Skip to content

Commit

Permalink
WHF-179: Handle activity creation for emails to organization contacts
Browse files Browse the repository at this point in the history
Included in CiviCRM 5.44
PR: civicrm#21983
  • Loading branch information
lisandro-compucorp committed Nov 11, 2021
1 parent 3c757cc commit 89aa83d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Utils/Mail/Incoming.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,12 @@ public static function getContactID($email, $name = NULL, $create = TRUE, &$mail
$contactID = NULL;
if ($dao) {
$contactID = $dao->contact_id;
} else {
$dao = CRM_Contact_BAO_Contact::matchContactOnEmail($email, 'Organization');

if ($dao) {
$contactID = $dao->contact_id;
}
}

$result = NULL;
Expand Down

0 comments on commit 89aa83d

Please sign in to comment.