Skip to content

Commit e44c3f6

Browse files
committed
ACP2E-39: customer/section/load without initialising the session would loads all data from catalog product frontend action
1 parent 302f6c5 commit e44c3f6

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/ProductFrontendAction

1 file changed

+3
-0
lines changed

app/code/Magento/Catalog/Model/ResourceModel/ProductFrontendAction/Collection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public function addFilterByUserIdentities($customerId, $visitorId)
3636
$this->addFieldToFilter('customer_id', $customerId);
3737
} elseif ($visitorId) {
3838
$this->addFieldToFilter('visitor_id', $visitorId);
39+
} else {
40+
$this->addFieldToFilter('visitor_id', $visitorId)
41+
->addFieldToFilter('customer_id', $customerId);
3942
}
4043

4144
return $this;

0 commit comments

Comments
 (0)