Skip to content

Commit 1c02661

Browse files
author
Robert He
committed
MAGETWO-71445: Out of stock options for configurable products still show up in search and layered navigation
- fixed processing relations of products using the wrong productIds
1 parent 097f8af commit 1c02661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Indexer/Product/Eav/AbstractAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected function syncData($indexer, $destinationTable, $ids)
143143
protected function processRelations($indexer, $ids, $onlyParents = false)
144144
{
145145
$parentIds = $indexer->getRelationsByChild($ids);
146-
$childIds = $onlyParents ? [] : $indexer->getRelationsByParent($ids);
146+
$childIds = $onlyParents ? [] : $indexer->getRelationsByParent($parentIds);
147147
return array_unique(array_merge($ids, $childIds, $parentIds));
148148
}
149149
}

0 commit comments

Comments
 (0)