X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f3d37867b7f35e6003f20803d3779a302c3f505..42ef10ba80bf7ff13b4f9210e5fbf54538e0d52f:/app/controllers/user_controller.rb?ds=sidebyside diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 19e8aeb7c..6935af3bc 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -109,6 +109,12 @@ class UserController < ApplicationController @user.home_lat = params[:user][:home_lat] @user.home_lon = params[:user][:home_lon] + if params[:user][:preferred_editor] == "default" + @user.preferred_editor = nil + else + @user.preferred_editor = params[:user][:preferred_editor] + end + if @user.save set_locale