Skip to content

Commit 1fb13ae

Browse files
MAGETWO-62405: Ignoring product visibility for SalesRules
1 parent 996c506 commit 1fb13ae

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/SalesRule/Model/Rule/Condition

1 file changed

+1
-1
lines changed

app/code/Magento/SalesRule/Model/Rule/Condition/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function validate(\Magento\Framework\Model\AbstractModel $model)
5252
$attrCode = $this->getAttribute();
5353

5454
if ('category_ids' == $attrCode) {
55-
return $this->validateAttribute($this->_getAvailableInCategories($product));
55+
return $this->validateAttribute($this->_getAvailableInCategories($product->getId()));
5656
}
5757

5858
return parent::validate($product);

0 commit comments

Comments
 (0)