Skip to content

Commit 4740771

Browse files
author
Stanislav Idolov
committed
MAGETWO-53307: Checkout is broken when purchasing products on persisted session
1 parent 14709ca commit 4740771

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
7979
&& $this->quoteManager->isPersistent()
8080
) {
8181
//Quote is not actual customer's quote, just persistent
82-
$quote->setIsActive(false)->setIsPersistent(true);
82+
$quote->setIsPersistent(true);
8383
}
8484
}
8585
}

app/code/Magento/Persistent/Test/Unit/Observer/SetQuotePersistentDataObserverTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ public function testExecuteWhenSessionIsPersistent()
101101
$this->customerSessionMock->expects($this->once())->method('isLoggedIn')->will($this->returnValue(false));
102102
$this->helperMock->expects($this->once())->method('isShoppingCartPersist')->will($this->returnValue(false));
103103
$this->quoteManagerMock->expects($this->once())->method('isPersistent')->will($this->returnValue(true));
104-
$this->quoteMock->expects($this->once())->method('setIsActive')->with(false)->will($this->returnSelf());
105104
$this->quoteMock->expects($this->once())->method('setIsPersistent')->with(true);
106105
$this->model->execute($this->observerMock);
107106
}

0 commit comments

Comments
 (0)