]> source.dussan.org Git - redmine.git/commitdiff
Adds controller to urls in case the side bar is called from another controller (...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 13 Mar 2009 19:25:11 +0000 (19:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 13 Mar 2009 19:25:11 +0000 (19:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2589 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_sidebar.rhtml

index bbc00f09120e713e4d4cee40a554c73b8c6d8258..de0c538fb8b2889fd5fb5924cb72234620263cd9 100644 (file)
@@ -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>