Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds controller to urls in case the side bar is called from another c…

…ontroller (#2960).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2589 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information...
commit 9f45499936879e910ccbf581a2c13bd73f47ba93 1 parent 7a38224
@jplang jplang authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/issues/_sidebar.rhtml
View
4 app/views/issues/_sidebar.rhtml
@@ -7,8 +7,8 @@
<%= call_hook(:view_issues_sidebar_issues_bottom) %>
<% planning_links = []
- planning_links << link_to(l(:label_calendar), :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true)
- planning_links << link_to(l(:label_gantt), :action => 'gantt', :project_id => @project) if User.current.allowed_to?(:view_gantt, @project, :global => true)
+ planning_links << link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true)
+ planning_links << link_to(l(:label_gantt), :controller => 'issues', :action => 'gantt', :project_id => @project) if User.current.allowed_to?(:view_gantt, @project, :global => true)
%>
<% unless planning_links.empty? %>
<h3><%= l(:label_planning) %></h3>
Please sign in to comment.
Something went wrong with that request. Please try again.