Skip to content

Commit d2035f3

Browse files
author
Stanislav Idolov
authored
ENGCOM-3266: [Forwardport] Fix customer unsubscribed issue #18795
2 parents 5916c5a + 5a1f6cd commit d2035f3

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)