tkusukawa / kusu

Automatically exported from code.google.com/p/kusu
0 stars 0 forks source link

http 500 error loading work_time in Redmine 1.2.0 stable #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Work Time in Redmine 1.2.0 stable
2. Try clicking on the link

I get an http 500 error below:

ActionView::TemplateError (undefined method `estimated_hours' for nil:NilClass) 
on line #60 of 
vendor/plugins/redmine_work_time/app/views/work_time/_user_month_table.html.erb:
57:           </a>
58: <%end%>
59:           <%= link_to(issueHtml, {:controller=>"issues", :action=>"show", 
:id=>issue_id}, :popup=>true) %>
60:           <%= print_issue_cost(issue) %>
61:           <div style="position:absolute;top:15px;right:15px;">
62:             <%=sprintf("%1.1f", issue_pack[:total])%>
63:           </div>

What version of the product are you using? On what operating system?

Please provide any additional information below.

Also see a bunch of these errors above:
/var/www/redmine/vendor/plugins/redmine_work_time/app/controllers/work_time_cont
roller.rb:895: warning: Object#id will be deprecated; use Object#object_id
/var/www/redmine/vendor/plugins/redmine_work_time/app/controllers/work_time_cont
roller.rb:903: warning: Object#id will be deprecated; use Object#object_id

Followed by one of these:
/var/www/redmine/vendor/plugins/redmine_work_time/app/views/work_time/_user_mont
h_table.html.erb:42: warning: Object#id will be deprecated; use Object#object_id

Any thoughts?

Many thanks,

--Jamie Gruener

Original issue reported on code.google.com by jamie.gr...@gmail.com on 29 Jun 2011 at 4:20

GoogleCodeExporter commented 9 years ago
please try following Revision

https://bitbucket.org/kusu/redmine_work_time/downloads
TIP(Node: 29130df0e2c3 now)

I'll delete deprecated code later.

Original comment by T.Kusukawa on 29 Jun 2011 at 10:23

GoogleCodeExporter commented 9 years ago
That did the trick! Thank you very much for the quick turn around.

Thanks,
--Jamie Gruener

Original comment by jamie.gr...@gmail.com on 30 Jun 2011 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by T.Kusukawa on 15 Jul 2011 at 1:52