-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove modifing config by reference in multistore #3617
remove modifing config by reference in multistore #3617
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just quick improvements
CHANGELOG.md
Outdated
@@ -113,6 +113,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
- Fixed resolving store code on SSR - @andrzejewsky (#3576) | |||
- Clear user data if error occurs while login - @gibkigonzo (#3588) | |||
- Fix loading bestsellers on 404 error page - @andrzejewsky (#3540) | |||
- Remove modifing config by reference in multistore - @gibkigonzo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add PR number if there is no issue for this
- Remove modifing config by reference in multistore - @gibkigonzo | |
- Remove modifying config by reference in multistore - @gibkigonzo (#3617) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
core/lib/multistore.ts
Outdated
storeCode: null, | ||
storeId: config.defaultStoreCode && config.defaultStoreCode !== '' ? config.storeViews[config.defaultStoreCode].storeId : 1, | ||
seo: config.seo || {} | ||
seo: Object.assign({}, config.seo || {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seo: Object.assign({}, config.seo || {}) | |
seo: Object.assign({}, config.seo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thanks :)
…into bugfix/remove-modify-config-in-prepareStoreView
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thanks :)
Short description and why it's useful
it fixes that config is modifying unexpectedly which causes wrong store Id in some cases
Which environment this relates to
Check your case. In case of any doubts please read about Release Cycle
develop
branch and want to merge it back todevelop
release
branch and want to merge it back torelease
hotfix
ormaster
branch and want to merge it back tohotfix
Upgrade Notes and Changelog
IMPORTANT NOTICE - Remember to update
CHANGELOG.md
with description of your changeContribution and currently important rules acceptance