]> git.openstreetmap.org Git - rails.git/commitdiff
Really fix the redirect on trace deletion
authorTom Hughes <tom@compton.nu>
Fri, 6 Aug 2010 08:59:11 +0000 (09:59 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 6 Aug 2010 08:59:11 +0000 (09:59 +0100)
app/controllers/trace_controller.rb

index b19e4d8b63952b5896e114ec3167bc9dae68a79a..4c7df550211aaa20a71fc3ccc51e6bda13324ec1 100644 (file)
@@ -206,7 +206,7 @@ class TraceController < ApplicationController
         trace.visible = false
         trace.save
         flash[:notice] = t 'trace.delete.scheduled_for_deletion'
-        redirect_to :action => :mine, :display_name => @user.display_name
+        redirect_to :action => :view, :display_name => @user.display_name, :id => nil
       else
         render :nothing => true, :status => :bad_request
       end