Skip to content

Commit 3798bc9

Browse files
committed
MAGETWO-55299: [Customer] Fast Save of Product Variations
- MAGETWO-55787: Fast saving of product with high number of variations generated
1 parent 9125a91 commit 3798bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/Product/VariationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function __construct(
7373
public function generateSimpleProducts($parentProduct, $productsData)
7474
{
7575
$generatedProductIds = [];
76+
$this->attributes = null;
7677
$productsData = $this->duplicateImagesForVariations($productsData);
7778
foreach ($productsData as $simpleProductData) {
7879
$newSimpleProduct = $this->productFactory->create();
@@ -92,7 +93,6 @@ public function generateSimpleProducts($parentProduct, $productsData)
9293

9394
$generatedProductIds[] = $newSimpleProduct->getId();
9495
}
95-
$this->attributes = null;
9696
return $generatedProductIds;
9797
}
9898

0 commit comments

Comments
 (0)