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 fa7fb54 commit 18c8bb5Copy full SHA for 18c8bb5
app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php
@@ -167,7 +167,10 @@ public function setValidationFilter(
167
$allAllowedRules = $this->getConnection()->select();
168
$allAllowedRules->union([$noCouponRules, $couponRules], \Zend_Db_Select::SQL_UNION_ALL);
169
170
- $this->_select = $allAllowedRules;
+ $wrapper = $this->getConnection()->select();
171
+ $wrapper->from($allAllowedRules);
172
+
173
+ $this->_select = $wrapper;
174
} else {
175
$this->_select = $noCouponRules;
176
}
0 commit comments