cforce / projects_tree_view

Proposed new home for the Redmine Projects Tree View plugin.
Other
24 stars 13 forks source link

redmine 1.3.x support #1

Closed ghost closed 12 years ago

ghost commented 12 years ago

Hi,

I've found your fork to be the newest for this plugin. Do you have any plans to make it work with redmine 1.3.x?

When I try to use it with 1.3.x, I get this error:

ActionController::RoutingError in Projects#index

Showing vendor/plugins/projects_tree_view/app/views/projects/index.rhtml where line #11 raised:

No route matches {:controller=>"time_entries", :action=>"index"}

Extracted source (around line #11):

8:       <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.admin? %>
9:     <% end %>
10:     <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
11:     <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
12:     <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
13: </div>
14: 

Thanx.

Ionutz

cforce commented 12 years ago

We don't use redmine 1.3 till now. But it shall bepretty easy to fix that .

In Redmine Pre 1.3 time entries have url https://redmine.org/time_entries. What is that url in redmine 1.3? Just find out an replace with new controller_name