Skip to content

Commit 7b31d75

Browse files
author
Oleksandr Iegorov
committed
MC-17137: When persistent cart is disabled, logged in users still have a persistent cart session
1 parent d9127ae commit 7b31d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Persistent/Observer/CheckExpirePersistentQuoteObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
145145
*/
146146
private function isPersistentQuoteOutdated(): bool
147147
{
148-
if (!$this->_persistentData->isEnabled() && $this->_checkoutSession->hasQuote()) {
148+
if (!$this->_persistentData->isEnabled() && $this->_checkoutSession->getQuoteId()) {
149149
return (bool)$this->getQuote()->getIsPersistent();
150150
}
151151
return false;

0 commit comments

Comments
 (0)