fix email notification

This commit is contained in:
yuri
2015-05-14 10:54:13 +03:00
parent b27b356997
commit caa0256f19
+1 -1
View File
@@ -60,7 +60,7 @@ class Email extends \Espo\Core\Notificators\Base
$userIdList = [];
foreach ($emailUserIdList as $userId) {
if (!in_array($userId, $userIdList) && $userId != $this->getUser()->id) {
if (!in_array($userId, $userIdList) && !in_array($userId, $previousUserIdList) && $userId != $this->getUser()->id) {
$userIdList[] = $userId;
}
}