Skip to content
Snippets Groups Projects
Commit e1f9d514 authored by Andriy Nasinnyk's avatar Andriy Nasinnyk Committed by Olexii Korshenko
Browse files

MAGETWO-39614: Error after customer logout if he matched customer segment with...

MAGETWO-39614: Error after customer logout if he matched customer segment with product from category is viewed condition
parent bb997b14
Branches
No related merge requests found
......@@ -151,7 +151,7 @@ class Observer
$productId = $observer->getEvent()->getProduct()->getId();
$viewData['product_id'] = $productId;
$viewData['store_id'] = $this->_storeManager->getStore()->getId();
if ($this->_customerSession->isLoggedIn()) {
$viewData['customer_id'] = $this->_customerSession->getCustomerId();
} else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment