From 81725aa3bc34d1f60dacfdf13d04975c51c751e8 Mon Sep 17 00:00:00 2001 From: Sergio Baixauli Date: Sun, 5 Nov 2017 14:08:53 +0100 Subject: [PATCH] Fix customer store_id mapping --- app/code/Magento/Newsletter/Model/Subscriber.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/Magento/Newsletter/Model/Subscriber.php b/app/code/Magento/Newsletter/Model/Subscriber.php index 9e021a21d23b3..d6d109de76b2a 100644 --- a/app/code/Magento/Newsletter/Model/Subscriber.php +++ b/app/code/Magento/Newsletter/Model/Subscriber.php @@ -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()) {