Skip to content

Commit 5429ab0

Browse files
author
Roman Lytvynenko
committed
MC-15237: Checkbox Subscribe to Newsletter not working with Account Share - Global
1 parent 27985bc commit 5429ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Newsletter/Model/ResourceModel/Subscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function loadByEmail($subscriberEmail)
130130
*/
131131
public function loadByCustomerData(\Magento\Customer\Api\Data\CustomerInterface $customer)
132132
{
133-
$storeIds = $this->storeManager->getWebsite($customer->getWebsiteId())->getStoreIds();
133+
$storeIds = $this->storeManager->getWebsite()->getStoreIds();
134134

135135
if ($customer->getId()) {
136136
$select = $this->connection

0 commit comments

Comments
 (0)