Skip to content

Commit 26e4dec

Browse files
author
Janak
committed
Fix customer unsubscribed issue
1 parent 8c868c3 commit 26e4dec

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
@@ -594,6 +594,8 @@ protected function _updateCustomerSubscription($customerId, $subscribe)
594594
} elseif (($this->getStatus() == self::STATUS_UNCONFIRMED) && ($customerData->getConfirmation() === null)) {
595595
$status = self::STATUS_SUBSCRIBED;
596596
$sendInformationEmail = true;
597+
} elseif (($this->getStatus() == self::STATUS_NOT_ACTIVE) && ($customerData->getConfirmation() === null)) {
598+
$status = self::STATUS_NOT_ACTIVE;
597599
} else {
598600
$status = self::STATUS_UNSUBSCRIBED;
599601
}

0 commit comments

Comments
 (0)