summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2011-12-10 13:33:01 +0000
committerEtienne Massip <etienne.massip@gmail.com>2011-12-10 13:33:01 +0000
commit7ba57e517ba0d90c5e603e53f3334ee31a56bc0c (patch)
tree731cddb42be1399cfe1305f39e8b56f22371a81e /app/controllers
parenteb789b147a60b33ff0e04b56e213c35b555b71ac (diff)
downloadredmine-7ba57e517ba0d90c5e603e53f3334ee31a56bc0c.tar.gz
redmine-7ba57e517ba0d90c5e603e53f3334ee31a56bc0c.zip
Explicitly declare all routes and deactivate default route.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8162 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/issue_relations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issue_relations_controller.rb b/app/controllers/issue_relations_controller.rb
index b721d3069..bcd0362f0 100644
--- a/app/controllers/issue_relations_controller.rb
+++ b/app/controllers/issue_relations_controller.rb
@@ -76,7 +76,7 @@ class IssueRelationsController < ApplicationController
@relation.destroy
respond_to do |format|
- format.html { redirect_to :controller => 'issues', :action => 'show', :id => @issue }
+ format.html { redirect_to issue_path } # TODO : does this really work since @issue is always nil? What is it useful to?
format.js { render(:update) {|page| page.remove "relation-#{@relation.id}"} }
format.api { head :ok }
end