Skip to content

Commit 042007b

Browse files
author
Oleksii Korshenko
committed
MAGETWO-81328: [Fix:5439] Send email to subscribers only when are new 2.1 #11316
- Merge Pull Request #11316 from osrecio/magento2:PR#NewsletterEmailSend - Merged commits: 1. 250d5f7 2. 53a789e 3. 62fc9e3 4. 30d5f42
2 parents 619ac30 + 30d5f42 commit 042007b

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)