X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e7a0302e2b992182896503690ca46588a02b09a2..b01261760893de04dda650a427ceb59beea80004:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index a59190697..d7b73c14e 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -473,7 +473,8 @@ class UserController < ApplicationController ## # sets a user's status def set_status - @this_user.update_attributes(:status => params[:status]) + @this_user.status = params[:status] + @this_user.save redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name] end