4291e28af7
Allow primary email to be set to an email that you've already added. Fixes gitlab-com/support-forum#106. When the user sets their primary email to an email that they've already added to their account, this patch makes sure that secondary email record is destroyed, and a new email record is created for the old primary email. This is based on the assumption that in this case no email was meant to be deleted, but the user simply wanted to change which of their emails is primary. See merge request !591 |
||
---|---|---|
.. | ||
application_controller.rb | ||
application_settings_controller.rb | ||
applications_controller.rb | ||
background_jobs_controller.rb | ||
broadcast_messages_controller.rb | ||
dashboard_controller.rb | ||
deploy_keys_controller.rb | ||
groups_controller.rb | ||
hooks_controller.rb | ||
keys_controller.rb | ||
logs_controller.rb | ||
projects_controller.rb | ||
services_controller.rb | ||
users_controller.rb |