Skip to content

Commit e09e979

Browse files
author
Kasian,Andrii(akasian)
committed
Merge pull request #370 from magento-dragons/MAGETWO-38879
[MX][Virtual Team][Bugfix] MAGETWO-38879: Products does displayed across all storeviews of the catalog
2 parents 4148723 + a1d5cec commit e09e979

File tree

1 file changed

+5
-0
lines changed
  • app/code/Magento/CatalogSearch/Model/Resource

1 file changed

+5
-0
lines changed

app/code/Magento/CatalogSearch/Model/Resource/Engine.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ public function cleanIndex($storeId = null, $entityId = null, $entity = 'product
193193
{
194194
$where = [];
195195

196+
if ($storeId !== null) {
197+
$where[] = $this->_getWriteAdapter()
198+
->quoteInto('store_id=?', $storeId);
199+
}
200+
196201
if ($entityId !== null) {
197202
$where[] = $this->_getWriteAdapter()
198203
->quoteInto('product_id IN (?)', $entityId);

0 commit comments

Comments
 (0)