craftcms / craftcms/cms

No default user account language is set

Open
#6,993 12 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

When creating a new installation the default account is created with no language preference set, so if the user heads into their account settings and saves their settings the German option at the top of the list gets applied.

Screen Shot 2020-10-13 at 2 58 19 pm

We had a few confusing instances where we wanted to change settings in one of the other tabs, not noticing the language preference and our dashboard language was changed to German

This happened with a few different installations

Steps to reproduce
  1. Install craft
  2. Go to account preferences
  3. Save settings
Additional info
  • Craft version: 3.5.12.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce this on a fresh Craft installation by opening account preferences and saving the settings. Trace how the default account's language preference is initialized and how the account preferences form handles an unset value; done means saving other settings no longer unexpectedly selects German.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.