Skip to content

Commit 996c506

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ public function validate(\Magento\Framework\Model\AbstractModel $model)
518518
$attrCode = $this->getAttribute();
519519

520520
if ('category_ids' == $attrCode) {
521-
return $this->validateAttribute($model->getAvailableInCategories($model));
521+
return $this->validateAttribute($model->getAvailableInCategories());
522522
} elseif (!isset($this->_entityAttributeValues[$model->getId()])) {
523523
if (!$model->getResource()) {
524524
return false;
@@ -633,7 +633,7 @@ public function validateByEntityId($productId)
633633
}
634634

635635
/**
636-
* Retrieve category ids where productId is available
636+
* Retrieve category ids where product is available
637637
*
638638
* @param int $productId
639639
* @return array

0 commit comments

Comments
 (0)