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 996c506 commit 1fb13aeCopy full SHA for 1fb13ae
app/code/Magento/SalesRule/Model/Rule/Condition/Product.php
@@ -52,7 +52,7 @@ public function validate(\Magento\Framework\Model\AbstractModel $model)
52
$attrCode = $this->getAttribute();
53
54
if ('category_ids' == $attrCode) {
55
- return $this->validateAttribute($this->_getAvailableInCategories($product));
+ return $this->validateAttribute($this->_getAvailableInCategories($product->getId()));
56
}
57
58
return parent::validate($product);
0 commit comments