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

Commit 6e9d5e5

Browse files
author
Janak
committed
Fix customer unsubscribed issue
1 parent 2e036c4 commit 6e9d5e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,8 @@ protected function _updateCustomerSubscription($customerId, $subscribe)
597597
} elseif (($this->getStatus() == self::STATUS_UNCONFIRMED) && ($customerData->getConfirmation() === null)) {
598598
$status = self::STATUS_SUBSCRIBED;
599599
$sendInformationEmail = true;
600+
} elseif (($this->getStatus() == self::STATUS_NOT_ACTIVE) && ($customerData->getConfirmation() === null)) {
601+
$status = self::STATUS_NOT_ACTIVE;
600602
} else {
601603
$status = self::STATUS_UNSUBSCRIBED;
602604
}

0 commit comments

Comments
 (0)