Skip to content

Commit 076da08

Browse files
committed
MAGETWO-96746: Invalid quote in session
1 parent a6177a2 commit 076da08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/Model/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function getQuote()
221221
$customerId = $this->_customer
222222
? $this->_customer->getId()
223223
: $this->_customerSession->getCustomerId();
224-
if ($quote->getData('customer_id') && $quote->getData('customer_id') !== $customerId) {
224+
if ($quote->getData('customer_id') && (int)$quote->getData('customer_id') !== (int)$customerId) {
225225
$quote = $this->quoteFactory->create();
226226
throw new \Magento\Framework\Exception\NoSuchEntityException();
227227
}

0 commit comments

Comments
 (0)