Skip to content

Commit

Permalink
Merge pull request #370 from magento-dragons/MAGETWO-38879
Browse files Browse the repository at this point in the history
[MX][Virtual Team][Bugfix] MAGETWO-38879: Products does displayed across all storeviews of the catalog
  • Loading branch information
Kasian,Andrii(akasian) committed Jun 22, 2015
2 parents 4148723 + a1d5cec commit e09e979
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/code/Magento/CatalogSearch/Model/Resource/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ public function cleanIndex($storeId = null, $entityId = null, $entity = 'product
{
$where = [];

if ($storeId !== null) {
$where[] = $this->_getWriteAdapter()
->quoteInto('store_id=?', $storeId);
}

if ($entityId !== null) {
$where[] = $this->_getWriteAdapter()
->quoteInto('product_id IN (?)', $entityId);
Expand Down

0 comments on commit e09e979

Please sign in to comment.