diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-21 13:52:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-21 13:52:19 +0000 |
commit | a11e3a85d61912faf05472696cc508dc44e456b8 (patch) | |
tree | b1a6ef845570cc061c8547aab1abc57cf744c730 /app/helpers | |
parent | 0efc783a7e4be71447da94b149e1b8a5196f001f (diff) | |
download | redmine-a11e3a85d61912faf05472696cc508dc44e456b8.tar.gz redmine-a11e3a85d61912faf05472696cc508dc44e456b8.zip |
Preserve Issues/Gantt/Calendar tab when displaying a saved query (#7605).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4909 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/issues_helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 38cc52fee..ec027e2e0 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -114,9 +114,12 @@ module IssuesHelper end def query_links(title, queries) + # links to #index on issues/show + url_params = controller_name == 'issues' ? {:controller => 'issues', :action => 'index', :project_id => @project} : params + content_tag('h3', title) + queries.collect {|query| - link_to(h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query) + link_to(h(query.name), url_params.merge(:query_id => query)) }.join('<br />') end |