Skip to content

Commit c77a323

Browse files
vprohorovnikshostko
authored andcommitted
MAGETWO-91701: Newsletter subscription is not correctly updated when user is registered on 2 stores
- Changing customer account getSubscriptionObject behavior
1 parent c01370d commit c77a323

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Customer/Block/Account/Dashboard

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Block/Account/Dashboard/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getSubscriptionObject()
102102
$this->_subscription = $this->_createSubscriber();
103103
$customer = $this->getCustomer();
104104
if ($customer) {
105-
$this->_subscription->loadByEmail($customer->getEmail());
105+
$this->_subscription->loadByCustomerId($customer->getId());
106106
}
107107
}
108108
return $this->_subscription;

0 commit comments

Comments
 (0)