Skip to content

Commit d7aedb3

Browse files
committed
Merge remote-tracking branch 'origin/MC-16220' into 2.3.2-develop-pr51
2 parents 5fce144 + a89c293 commit d7aedb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/SalesRule/Observer/CouponCodeValidation.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public function execute(EventObserver $observer)
6464
//Only validating the code if it's a new code.
6565
/** @var Quote[] $found */
6666
$found = $this->cartRepository->getList(
67-
$this->criteriaBuilder->addFilter(CartInterface::KEY_ENTITY_ID, $quote->getId())->create()
67+
$this->criteriaBuilder->addFilter('main_table.' . CartInterface::KEY_ENTITY_ID, $quote->getId())
68+
->create()
6869
)->getItems();
6970
if (!$found || ((string)array_shift($found)->getCouponCode()) !== (string)$code) {
7071
try {

0 commit comments

Comments
 (0)