Skip to content

Commit 18c8bb5

Browse files
committed
Fix integration error preventing coupon codes to be applied.
1 parent fa7fb54 commit 18c8bb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ public function setValidationFilter(
167167
$allAllowedRules = $this->getConnection()->select();
168168
$allAllowedRules->union([$noCouponRules, $couponRules], \Zend_Db_Select::SQL_UNION_ALL);
169169

170-
$this->_select = $allAllowedRules;
170+
$wrapper = $this->getConnection()->select();
171+
$wrapper->from($allAllowedRules);
172+
173+
$this->_select = $wrapper;
171174
} else {
172175
$this->_select = $noCouponRules;
173176
}

0 commit comments

Comments
 (0)