fernandokosh / redmine_time_tracker

A time tracker plugin for Redmine
Other
203 stars 139 forks source link

Redmine 1.4.0: NoMethodError in Time_trackers#index #75

Open cassianomonteiro opened 12 years ago

cassianomonteiro commented 12 years ago

When I click on the list button, I get the following error:

NoMethodError in Time_trackers#index

Showing vendor/plugins/redmine_time_tracker/app/views/time_trackers/index.rhtml where line #78 raised:

undefined method `subject' for nil:NilClass

Extracted source (around line #78):

75:                                     
76:                                 <% end %>
77:                                 <%= link_to_user user_from_id(time_tracker[:user_id]) %>
78:                                 <%= link_to_issue issue_from_id(time_tracker[:issue_id]), :project => true %>
79:                                 <%= format_time(time_tracker[:started_on]) %>
80:                                 <%= time_tracker.time_spent_to_s %>
81:                                 

RAILS_ROOT: C:/webserver/Redmine
Application Trace | Framework Trace | Full Trace

C:/webserver/Redmine/app/helpers/application_helper.rb:80:in `link_to_issue'

Request

Parameters:

None

Show session dump

--- 

Response

Headers:

{"Content-Type"=>"",
 "Cache-Control"=>"no-cache"}
delaitre commented 12 years ago

What version of the plugin do you use? Can you try with the development version?

cassianomonteiro commented 12 years ago

Sorry, I forgot to mention that... Yes, I´m already using the development version (I had it before to solve the routes issues on Redmine 1.4.0).

Thanks!