File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
app/code/Magento/GroupedProduct/Model/Product/Type Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -475,10 +475,12 @@ public function hasWeight()
475
475
* @param \Magento\Catalog\Model\Product $product
476
476
* @return void
477
477
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
478
+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
478
479
*/
479
480
public function deleteTypeSpecificData (\Magento \Catalog \Model \Product $ product )
480
481
{
481
482
}
483
+ //phpcs:enable
482
484
483
485
/**
484
486
* @inheritdoc
@@ -488,6 +490,7 @@ public function beforeSave($product)
488
490
//clear cached associated links
489
491
$ product ->unsetData ($ this ->_keyAssociatedProducts );
490
492
if ($ product ->hasData ('product_options ' ) && !empty ($ product ->getData ('product_options ' ))) {
493
+ //phpcs:ignore Magento2.Exceptions.DirectThrow
491
494
throw new \Exception ('Custom options for grouped product type are not supported ' );
492
495
}
493
496
return parent ::beforeSave ($ product );
You can’t perform that action at this time.
0 commit comments