]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Merge remote-tracking branch 'upstream/pull/1798'
[rails.git] / app / controllers / trace_controller.rb
index 81c7864738cf3d5208a1566f23c7a2a86becd9fd..ce24940012f800d21081a8fd6363c090f600a80d 100644 (file)
@@ -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