Skip to content

Commit

Permalink
Fix customer store_id mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaixauli committed Nov 5, 2017
1 parent 65000d8 commit 81725aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Newsletter/Model/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ public function loadByCustomerId($customerId)
{
try {
$customerData = $this->customerRepository->getById($customerId);
$customerData->setStoreId($this->_storeManager->getStore()->getId());
$data = $this->getResource()->loadByCustomerData($customerData);
$this->addData($data);
if (!empty($data) && $customerData->getId() && !$this->getCustomerId()) {
Expand Down

0 comments on commit 81725aa

Please sign in to comment.