Skip to content
Snippets Groups Projects
Commit c18524a1 authored by Oleksii Korshenko's avatar Oleksii Korshenko Committed by GitHub
Browse files

MAGETWO-81326: [Fix:5439] Send email to subscribers only when are new 2.2 [Backport] #11317

parents 4d613f20 5aad0b35
No related merge requests found
...@@ -395,6 +395,10 @@ class Subscriber extends \Magento\Framework\Model\AbstractModel ...@@ -395,6 +395,10 @@ class Subscriber extends \Magento\Framework\Model\AbstractModel
{ {
$this->loadByEmail($email); $this->loadByEmail($email);
if ($this->getId() && $this->getStatus() == self::STATUS_SUBSCRIBED) {
return $this->getStatus();
}
if (!$this->getId()) { if (!$this->getId()) {
$this->setSubscriberConfirmCode($this->randomSequence()); $this->setSubscriberConfirmCode($this->randomSequence());
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment