diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2018-05-15 16:14:40 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-05-15 17:14:40 +0300 |
commit | e45331d6d23870975111373e53c4a2a8c36ba5ad (patch) | |
tree | cb2631fef7c753d8e67987d2b098c091b091ac8d /templates/user/settings | |
parent | d3dce01cf78befe0b7c589957f27c1626f2069d7 (diff) | |
download | gitea-e45331d6d23870975111373e53c4a2a8c36ba5ad.tar.gz gitea-e45331d6d23870975111373e53c4a2a8c36ba5ad.zip |
add user language value to hidden input to enable saving of profile without changing language (#3967)
Diffstat (limited to 'templates/user/settings')
-rw-r--r-- | templates/user/settings/profile.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index e5bb2df011..6a654fda70 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -43,7 +43,7 @@ <div class="field"> <label for="language">{{.i18n.Tr "settings.language"}}</label> <div class="ui language selection dropdown" id="language"> - <input name="language" type="hidden"> + <input name="language" type="hidden" value="{{.SignedUser.Language}}"> <i class="dropdown icon"></i> <div class="text">{{range .AllLangs}}{{if eq $.SignedUser.Language .Lang}}{{.Name}}{{end}}{{end}}</div> <div class="menu"> |