Skip to content

Commit 46a57b1

Browse files
committed
MC-37321: Quote customer_is_guest = false
1 parent e015f19 commit 46a57b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ public function execute(\Magento\Framework\Event\Observer $observer)
139139
!$this->_persistentSession->isPersistent() &&
140140
!$this->_customerSession->isLoggedIn() &&
141141
$this->_checkoutSession->getQuoteId() &&
142-
!$this->isRequestFromCheckoutPage($this->request) &&
143142
// persistent session does not expire on onepage checkout page
144-
$this->isNeedToExpireSession()
143+
!$this->isRequestFromCheckoutPage($this->request) &&
144+
$this->getQuote()->getIsPersistent()
145145
) {
146146
$this->_eventManager->dispatch('persistent_session_expired');
147147
$this->quoteManager->expire();

0 commit comments

Comments
 (0)