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...
1 parent 7a38224 commit 9f45499936879e910ccbf581a2c13bd73f47ba93 @jplang jplang committed Mar 13, 2009
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>

0 comments on commit 9f45499

Please sign in to comment.