summaryrefslogtreecommitdiffstats
path: root/app/helpers/queries_helper.rb
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-08-08 07:07:20 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-08-08 07:07:20 +0000
commita1b607480abc6649f9531b1fd8a7d20c3c656084 (patch)
treec23e04bd9922308d8c00f9e3962a02bdcb120248 /app/helpers/queries_helper.rb
parent5b64f0ff969db3f0a99c1c780ab03d842da6b59d (diff)
downloadredmine-a1b607480abc6649f9531b1fd8a7d20c3c656084.tar.gz
redmine-a1b607480abc6649f9531b1fd8a7d20c3c656084.zip
Refactor: added link_to_project helper to handle links to projects
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3924 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/queries_helper.rb')
-rw-r--r--app/helpers/queries_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index 594c8a79a..26be63693 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -50,7 +50,7 @@ module QueriesHelper
when 'User'
link_to_user value
when 'Project'
- link_to(h(value), :controller => 'projects', :action => 'show', :id => value)
+ link_to_project value
when 'Version'
link_to(h(value), :controller => 'versions', :action => 'show', :id => value)
when 'TrueClass'