mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-24 09:24:11 +08:00
When adding a new field required "for all users", and the field is of "confirmation" type, it does not show up. This is happening because we're checking for fields using `isEmpty`, assuming the value will be `null` before it is filled up, but for confirmation type fields it is in fact cast to `false`. `isEmpty(value)` -> `!value` This PR also fixes an issue where we'd "unlock" the user in the front-end even if the call to update the required fields failed. |
||
|---|---|---|
| .. | ||
| hide_from_public_spec.rb | ||
| staff_info_spec.rb | ||
| user_invites_spec.rb | ||
| user_notifications_spec.rb | ||
| user_page_search_spec.rb | ||
| user_preferences_account_spec.rb | ||
| user_preferences_interface_spec.rb | ||
| user_preferences_navigation_spec.rb | ||
| user_preferences_profile_spec.rb | ||
| user_preferences_security_spec.rb | ||
| user_profile_info_panel_spec.rb | ||
| users_directory_spec.rb | ||