🐛 [Bug] Selected language is changed when editing a post
Created by: Tirokk
Authored by alina-beck Closed
🐛 Bugreport
reported by @infinite-dao at the related issue #1467:
Seeing the same on https://human-connection.social, I just want to add:
- I had posted a news article with English language setting, it is saved as such
- On reediting this article it displays in gray as @ulfgebhardt reported and the very first option is selected regardless that an English language setting was saved before
So it needs also a selected check, wich language option has to be selected in relation to the previously saved post article language setting
Steps to reproduce the behavior
- Write a new post
- Select a language other than your selected locale
- Save the post
- Edit the post
- See the language setting changed to your selected locale
Expected behavior
When I select a language for a post I expect it not to change automatically when editing the post. I still want to be able to manually change the language.
Version & Environment
originally found on production
, reproducible on develop
Additional context
The language select field
needs to be decoupled from the locale setting
.
Question: Do we want to pre-select a language, based on the current locale setting
or should it be empty and the user forced to select a language manually? Can we make sure to only set the language automatically when no language has been selected yet?
possibly related to #2119 (closed)