Skip to content

Commit

Permalink
ENGCOM-3253: Fix customer unsubscribed issue #18643
Browse files Browse the repository at this point in the history
 - Merge Pull Request #18643 from janakbhimani/magento2:issue-17954
 - Merged commits:
   1. 332f88f
   2. 8c868c3
   3. 26e4dec
  • Loading branch information
magento-engcom-team committed Oct 23, 2018
2 parents e9c1946 + 26e4dec commit b244668
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Newsletter/Model/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ protected function _updateCustomerSubscription($customerId, $subscribe)
} elseif (($this->getStatus() == self::STATUS_UNCONFIRMED) && ($customerData->getConfirmation() === null)) {
$status = self::STATUS_SUBSCRIBED;
$sendInformationEmail = true;
} elseif (($this->getStatus() == self::STATUS_NOT_ACTIVE) && ($customerData->getConfirmation() === null)) {
$status = self::STATUS_NOT_ACTIVE;
} else {
$status = self::STATUS_UNSUBSCRIBED;
}
Expand Down

0 comments on commit b244668

Please sign in to comment.