Skip to content
Snippets Groups Projects
Unverified Commit 0d0f3c15 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix language dropdown sometimes not appearing in web UI (#19246)

When user has no locale preference saved (such as never changing it
from the default), the preferred posting language is nil, and
the dropdown is not visible
parent 55a2e9b5
No related branches found
No related tags found
No related merge requests found
......@@ -282,7 +282,7 @@ class User < ApplicationRecord
end
def preferred_posting_language
valid_locale_cascade(settings.default_language, locale)
valid_locale_cascade(settings.default_language, locale, I18n.locale)
end
def setting_default_privacy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment