##// END OF EJS Templates
Preserve Issues/Gantt/Calendar tab when displaying a saved query (#7605)....
Jean-Philippe Lang -
r4789:a11e3a85d619
parent child
Show More
@@ -114,9 +114,12 module IssuesHelper
114 end
114 end
115
115
116 def query_links(title, queries)
116 def query_links(title, queries)
117 # links to #index on issues/show
118 url_params = controller_name == 'issues' ? {:controller => 'issues', :action => 'index', :project_id => @project} : params
119
117 content_tag('h3', title) +
120 content_tag('h3', title) +
118 queries.collect {|query|
121 queries.collect {|query|
119 link_to(h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query)
122 link_to(h(query.name), url_params.merge(:query_id => query))
120 }.join('<br />')
123 }.join('<br />')
121 end
124 end
122
125
General Comments 0
You need to be logged in to leave comments. Login now