Skip to content

Commit 9ff747f

Browse files
committed
31870:fix passing all params in plugin
1 parent 1807f70 commit 9ff747f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/Plugin/ProductRepositorySave.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function beforeSave(
6060
ProductInterface $product,
6161
$saveOptions = false
6262
): array {
63-
$result[] = $product;
63+
$result = [$product, $saveOptions];
6464
if ($product->getTypeId() !== Configurable::TYPE_CODE) {
6565
return $result;
6666
}

0 commit comments

Comments
 (0)