fedora-infra / fas

Fedora Account System
https://admin.fedoraproject.org/accounts
GNU General Public License v2.0
40 stars 50 forks source link

if no locale setup in the ini file, can't save profile changes #236

Closed ryanlerch closed 6 years ago

ryanlerch commented 7 years ago

Currently, the staging instance of FAS3 in for the fedoraproject does not have the locale lines in the ini file. i.e.

locale.default = en
locale.available = en_US,en_GB,fr

While we should probably fix that, there is no fallback if these arent set. For example, if i try to edit my details on the page, i get the following error.

screenshot from 2017-01-20 09-51-49

we should either throw an error if no locales are set in the ini file, or not show / process the field at all if they arent set in the ini file.

laxathom commented 7 years ago

How about make this field en_US by default when opening the edit page?