Defect #6157 ยป retain_action_when_applying_custom_query.diff
app/controllers/calendars_controller.rb | ||
---|---|---|
8 | 8 |
helper :projects |
9 | 9 |
helper :queries |
10 | 10 |
include QueriesHelper |
11 |
include SortHelper |
|
11 | 12 | |
12 | 13 |
def show |
13 | 14 |
if params[:year] and params[:year].to_i > 1900 |
app/views/issues/_sidebar.rhtml | ||
---|---|---|
17 | 17 |
<h3><%= l(:label_query_plural) %></h3> |
18 | 18 | |
19 | 19 |
<% sidebar_queries.each do |query| -%> |
20 |
<%= link_to(h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query) %><br />
|
|
20 |
<%= link_to(h(query.name), :controller => controller_name, :action => (controller_name == 'issues' ? 'index' : 'show'), :project_id => @project, :query_id => query) %><br />
|
|
21 | 21 |
<% end -%> |
22 | 22 |
<%= call_hook(:view_issues_sidebar_queries_bottom) %> |
23 | 23 |
<% end -%> |