mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
email: show group email account if email address matches
This commit is contained in:
@@ -149,6 +149,9 @@ class Email extends \Espo\Core\ORM\Repositories\RDB
|
||||
$idHash = (object) [];
|
||||
foreach ($addressList as $address) {
|
||||
$p = $this->getEntityManager()->getRepository('EmailAddress')->getEntityByAddress($address);
|
||||
if (!$p) {
|
||||
$p = $this->getEntityManager()->getRepository('InboundEmail')->where(array('emailAddress' => $address))->findOne();
|
||||
}
|
||||
if ($p) {
|
||||
$nameHash->$address = $p->get('name');
|
||||
$typeHash->$address = $p->getEntityName();
|
||||
|
||||
Reference in New Issue
Block a user