fix email note if sent is fail
This commit is contained in:
@@ -104,12 +104,15 @@ class Email extends Record
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->getStreamService()->noteEmailSent($parent, $entity);
|
||||
}
|
||||
}
|
||||
|
||||
$emailSender->send($entity, $params);
|
||||
|
||||
if ($parent) {
|
||||
$this->getStreamService()->noteEmailSent($parent, $entity);
|
||||
}
|
||||
|
||||
$this->getEntityManager()->saveEntity($entity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user