Skip to content

Commit 7b8522c

Browse files
fix undefined method isAllowedForRuleCondition
1 parent dd862cd commit 7b8522c

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ public function loadAttributeOptions()
6868
$attributes = [];
6969
foreach ($productAttributes as $attribute) {
7070
/* @var $attribute \Magento\Catalog\Model\ResourceModel\Eav\Attribute */
71-
if (!$attribute->isAllowedForRuleCondition()
72-
|| !$attribute->getDataUsingMethod($this->_isUsedForRuleProperty)
73-
) {
71+
if (!$attribute->getDataUsingMethod($this->_isUsedForRuleProperty)
72+
|| !$attribute->isAllowedForRuleCondition()) {
7473
continue;
7574
}
7675
$frontLabel = $attribute->getFrontendLabel();

0 commit comments

Comments
 (0)