Closed
Description
The function updateCartCurrency set an object instead of a string inside the cart object. On line 130, 131 and 133. The argument passed should be
$newStore->getCurrentCurrency()->getCode()
instead of
$newStore->getCurrentCurrency()
Preconditions (*)
- Magento 2.4.3
Steps to reproduce (*)
- Add an item to cart trough graphql with a logged in user
- Change your store view
- Try to load a quote with \Magento\Checkout\Model\Session ->getQuote in a checkout_cart_save_after events
Expected result (*)
- Quote is loaded correctly observer can process by doing what it needs to do
Actual result (*)
- Quote is not loaded because it try to compare an object with a string on line 267 of https://github.com/magento/magento2/blob/2.4.3-release/app/code/Magento/Checkout/Model/Session.php. Then when trying to save the quote on line 269 it goes on an infinite loop with the observer .
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done