From fcb22595d0e87a2d04fb0210c775efdab6cfffa6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 17 Oct 2012 17:01:07 +0000 Subject: [PATCH] Use named route (#12113). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10663 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index efe16f31d..7f70f6255 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -100,7 +100,7 @@ module IssuesHelper :tracker_id => issue.tracker, :parent_issue_id => issue } - link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => issue.project, :issue => attrs}) + link_to(l(:button_add), new_project_issue_path(issue.project, :issue => attrs)) end class IssueFieldsRows