X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd66a5db99fda4920ed559ec71163d5d01ba1f4a..e37a9ec0b52ead11543660ca45fee33c7f7bb1d7:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index d73d38a17..6935af3bc 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -109,7 +109,11 @@ class UserController < ApplicationController @user.home_lat = params[:user][:home_lat] @user.home_lon = params[:user][:home_lon] - @user.preferred_editor = params[:user][:preferred_editor] + if params[:user][:preferred_editor] == "default" + @user.preferred_editor = nil + else + @user.preferred_editor = params[:user][:preferred_editor] + end if @user.save set_locale