Skip to content

Commit 266c552

Browse files
committed
MAGETWO-64260: [Optimize] Performance for grouped products with large # of options
- Fix static test;
1 parent 448e7e9 commit 266c552

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/GroupedProduct/Model/Product/Type

1 file changed

+3
-0
lines changed

app/code/Magento/GroupedProduct/Model/Product/Type/Grouped.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,12 @@ public function hasWeight()
475475
* @param \Magento\Catalog\Model\Product $product
476476
* @return void
477477
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
478+
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
478479
*/
479480
public function deleteTypeSpecificData(\Magento\Catalog\Model\Product $product)
480481
{
481482
}
483+
//phpcs:enable
482484

483485
/**
484486
* @inheritdoc
@@ -488,6 +490,7 @@ public function beforeSave($product)
488490
//clear cached associated links
489491
$product->unsetData($this->_keyAssociatedProducts);
490492
if ($product->hasData('product_options') && !empty($product->getData('product_options'))) {
493+
//phpcs:ignore Magento2.Exceptions.DirectThrow
491494
throw new \Exception('Custom options for grouped product type are not supported');
492495
}
493496
return parent::beforeSave($product);

0 commit comments

Comments
 (0)