Skip to content

Commit 6b1a489

Browse files
MAGETWO-39614: Error after customer logout if he matched customer segment with product from category is viewed condition
1 parent a0a3942 commit 6b1a489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Reports/Model/Event/Observer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function catalogProductView(\Magento\Framework\Event\Observer $observer)
151151
$productId = $observer->getEvent()->getProduct()->getId();
152152

153153
$viewData['product_id'] = $productId;
154-
154+
$viewData['store_id'] = $this->_storeManager->getStore()->getId();
155155
if ($this->_customerSession->isLoggedIn()) {
156156
$viewData['customer_id'] = $this->_customerSession->getCustomerId();
157157
} else {

0 commit comments

Comments
 (0)