mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
email filtering fix
This commit is contained in:
@@ -121,11 +121,22 @@ class Email extends \Espo\Core\SelectManagers\Base
|
||||
'usersMiddle.inTrash=' => false,
|
||||
'usersMiddle.folderId' => null,
|
||||
array(
|
||||
'status!=' => 'Draft'
|
||||
'status' => ['Archived', 'Sent']
|
||||
)
|
||||
);
|
||||
if (!empty($idList)) {
|
||||
$d['fromEmailAddressId!='] = $idList;
|
||||
$d[] = array(
|
||||
'OR' => array(
|
||||
'status' => 'Archived',
|
||||
'createdById!=' => $this->getUser()->id
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$d[] = array(
|
||||
'status' => 'Archived',
|
||||
'createdById!=' => $this->getUser()->id
|
||||
);
|
||||
}
|
||||
$result['whereClause'][] = $d;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user