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.
2 parents 5fce144 + a89c293 commit d7aedb3Copy full SHA for d7aedb3
app/code/Magento/SalesRule/Observer/CouponCodeValidation.php
@@ -64,7 +64,8 @@ public function execute(EventObserver $observer)
64
//Only validating the code if it's a new code.
65
/** @var Quote[] $found */
66
$found = $this->cartRepository->getList(
67
- $this->criteriaBuilder->addFilter(CartInterface::KEY_ENTITY_ID, $quote->getId())->create()
+ $this->criteriaBuilder->addFilter('main_table.' . CartInterface::KEY_ENTITY_ID, $quote->getId())
68
+ ->create()
69
)->getItems();
70
if (!$found || ((string)array_shift($found)->getCouponCode()) !== (string)$code) {
71
try {
0 commit comments