]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 6 Apr 2012 16:53:12 +0000 (16:53 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 6 Apr 2012 16:53:12 +0000 (16:53 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9364 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/attachments_controller.rb

index 425bfab941fad9615536dfa92848b7a2bd6b4169..3406a4d3a8158ff88787f6a8f58aae9fac15ccf3 100644 (file)
@@ -88,7 +88,7 @@ class AttachmentsController < ApplicationController
     end
     # Make sure association callbacks are called
     @attachment.container.attachments.delete(@attachment)
-    redirect_back_or_default project_path(@project)
+    redirect_to_referer_or project_path(@project)
   end
 
 private