Skip to content

Commit 17bd42c

Browse files
committed
ACP2E-2166: Magento is slow for customers with large address books
- reverted session operation
1 parent 4bccc29 commit 17bd42c

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
@@ -312,7 +312,7 @@ public function getQuote()
312312
if ($this->_customer) {
313313
$quote->setCustomer($this->_customer);
314314
} elseif ($this->_customerSession->isLoggedIn()) {
315-
$quote->setCustomer($this->_customerSession->getCustomerData());
315+
$quote->setCustomer($this->customerRepository->getById($this->_customerSession->getCustomerId()));
316316
}
317317

318318
$quote->setStore($this->_storeManager->getStore());

0 commit comments

Comments
 (0)