Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 5aad0b3

Browse files
author
Oleksii Korshenko
committed
MAGETWO-81326: [Fix:5439] Send email to subscribers only when are new 2.2 [Backport] #11317
- Merge Pull Request magento/magento2#11317 from osrecio/magento2:PR#NewsletterEmailSend-2.2 - Merged commits: 1. b6c78a4 2. f5daa7f 3. 393bace
2 parents 080a341 + 393bace commit 5aad0b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Newsletter/Model/Subscriber.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ public function subscribe($email)
395395
{
396396
$this->loadByEmail($email);
397397

398+
if ($this->getId() && $this->getStatus() == self::STATUS_SUBSCRIBED) {
399+
return $this->getStatus();
400+
}
401+
398402
if (!$this->getId()) {
399403
$this->setSubscriberConfirmCode($this->randomSequence());
400404
}

0 commit comments

Comments
 (0)