Skip to content

Commit b244668

Browse files
ENGCOM-3253: Fix customer unsubscribed issue #18643
- Merge Pull Request #18643 from janakbhimani/magento2:issue-17954 - Merged commits: 1. 332f88f 2. 8c868c3 3. 26e4dec
2 parents e9c1946 + 26e4dec commit b244668

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)