Steps to reproduce:
- Click your avatar in the upper-right corner.
- Choose “Preferences.”
- Click the icon to edit your title.
- If the selection isn’t preset to
<none>- change it to
<none>, save and reload the page.
- Click “Save Changes” without actually changing the selection.
A message “Sorry, an error has occurred.” shows up. Admin logs show the following error:
ActionController::ParameterMissing (param is missing or the value is empty: user_badge_id) vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.10/lib/action_controller/metal/strong_parameters.rb:187:in `require' app/controllers/users_controller.rb:132:in `badge_title' vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
If you change the selection before submitting then the error doesn’t occur - even if you change it to
I could not reproduce here because I don’t have the necessary badges. However, our Discourse instance is at this revision which is fairly recent.