X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/646dcb62fca67b6dd52d8a46fef5fc260baa4b83..ba543340b177c9a7ca673ad6cbe05e1acfb71a91:/app/controllers/trace_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 81c786473..ce2494001 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -192,7 +192,7 @@ class TraceController < ApplicationController trace.visible = false trace.save flash[:notice] = t "trace.delete.scheduled_for_deletion" - redirect_to :action => :list, :display_name => current_user.display_name + redirect_to :action => :list, :display_name => trace.user.display_name end rescue ActiveRecord::RecordNotFound head :not_found