Skip to content

Commit 32439d7

Browse files
author
Oleksii Korshenko
authored
MAGETWO-81328: [Fix:5439] Send email to subscribers only when are new 2.1 #11316
2 parents 0d6201f + 042007b commit 32439d7

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)