Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ public function getUsedProductIds($product)
{
if (!$product->hasData($this->_usedProductIds)) {
$usedProductIds = [];
foreach ($this->getUsedProducts($product) as $product) {
$usedProductIds[] = $product->getId();
foreach ($this->getUsedProducts($product) as $childProduct) {
$usedProductIds[] = $childProduct->getId();
}
$product->setData($this->_usedProductIds, $usedProductIds);
}
Expand Down