Force current currency reload on current currency code change#40326
Force current currency reload on current currency code change#40326thomas-kl1 wants to merge 1 commit intomagento:2.4-developfrom
Conversation
|
Hi @thomas-kl1. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento create issue |
|
Hi @thomas-kl1 thank you for your contribution. According to the definition of done all changes must be covered by automated tests if possible. As this behavior is caused by interaction between the store model and the session, maybe extending the integration test for the store model would be a good approach. |
Description (*)
When calling multiple times \Magento\Store\Model\Store::setCurrentCurrencyCode
the \Magento\Store\Model\Store::getCurrentCurrency is not updated accordingly.
As a workaround, we need to unset the cached data on the store entity manually: $store->unsetData('current_currency')
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: