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 f707775 commit 5a54198Copy full SHA for 5a54198
app/code/Magento/SalesRule/Model/ResourceModel/Rule.php
@@ -314,7 +314,7 @@ public function getActiveAttributes()
314
[]
315
)->joinInner(
316
['sr' => $this->getTable('salesrule')],
317
- 'a.' . $this->getLinkField() . ' = sr.rule_id AND sr.is_active = 1',
+ 'a.' . $this->getLinkField() . ' = sr.' . $this->getLinkField() . ' AND sr.is_active = 1',
318
319
);
320
return $connection->fetchAll($select);
0 commit comments