We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c43adf7 commit fc81559Copy full SHA for fc81559
app/code/Magento/ConfigurableProduct/Plugin/SalesRule/Model/Rule/Condition/Product.php
@@ -24,9 +24,10 @@ public function beforeValidate(
24
\Magento\SalesRule\Model\Rule\Condition\Product $subject,
25
\Magento\Framework\Model\AbstractModel $model
26
) {
27
- $model->setProduct(
28
- $this->getProductToValidate($subject, $model)
29
- );
+ $product = $this->getProductToValidate($subject, $model);
+ if ($model->getProduct() !== $product) {
+ $model->setProduct($product);
30
+ }
31
}
32
33
/**
0 commit comments