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 dd862cd commit 7b8522cCopy full SHA for 7b8522c
app/code/Magento/SalesRule/Model/Rule/Condition/Product.php
@@ -68,9 +68,8 @@ public function loadAttributeOptions()
68
$attributes = [];
69
foreach ($productAttributes as $attribute) {
70
/* @var $attribute \Magento\Catalog\Model\ResourceModel\Eav\Attribute */
71
- if (!$attribute->isAllowedForRuleCondition()
72
- || !$attribute->getDataUsingMethod($this->_isUsedForRuleProperty)
73
- ) {
+ if (!$attribute->getDataUsingMethod($this->_isUsedForRuleProperty)
+ || !$attribute->isAllowedForRuleCondition()) {
74
continue;
75
}
76
$frontLabel = $attribute->getFrontendLabel();
0 commit comments