Skip to content

Use correct locale ID in Multilingual/Service/Detector::getPreferredSection#6766

Merged
aembler merged 1 commit intoconcretecms:developfrom
mlocati-forks:fix-detected-browser-locale
Jun 14, 2018
Merged

Use correct locale ID in Multilingual/Service/Detector::getPreferredSection#6766
aembler merged 1 commit intoconcretecms:developfrom
mlocati-forks:fix-detected-browser-locale

Conversation

@mlocati
Copy link
Copy Markdown
Contributor

@mlocati mlocati commented Jun 12, 2018

When we detect the browser locale, we can for example resolve the it language code specified by the browser to the it_IT multilingual section.
In this case, we store in the multilingual_default_locale session key it instead of it_IT, which is wrong: we should store the actual multilingual section ID, otherwise this line will fail.

Let's fix this.

@aembler aembler merged commit a424f94 into concretecms:develop Jun 14, 2018
@mlocati mlocati deleted the fix-detected-browser-locale branch June 14, 2018 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants