fix email notification

This commit is contained in:
yuri
2018-11-16 11:32:50 +02:00
parent 603019116b
commit 6f3be6fdde
+1 -1
View File
@@ -58,7 +58,7 @@ class Email extends \Espo\Core\Notificators\Base
public function process(Entity $entity, array $options = [])
{
if ($entity->get('status') !== 'Archived' && $entity->get('status') !== 'Sent') {
if (!in_array($entity->get('status'), ['Archived', 'Sent', 'Being Imported'])) {
return;
}