Skip to content

Commit 81725aa

Browse files
committed
Fix customer store_id mapping
1 parent 65000d8 commit 81725aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ public function loadByCustomerId($customerId)
349349
{
350350
try {
351351
$customerData = $this->customerRepository->getById($customerId);
352+
$customerData->setStoreId($this->_storeManager->getStore()->getId());
352353
$data = $this->getResource()->loadByCustomerData($customerData);
353354
$this->addData($data);
354355
if (!empty($data) && $customerData->getId() && !$this->getCustomerId()) {

0 commit comments

Comments
 (0)