software-project / scrum-pm

Scrum PM is a plugin for Redmine ticket management system. It adds Scrum items like backlog, dashboard and others.
www.software-project.eu/EN/scrumpm
126 stars 47 forks source link

undefined method `to_date' for nil:NilClass #9

Closed Alsan closed 14 years ago

Alsan commented 14 years ago

After adding issues from the normal issues tab, and then going to the Dashboard tab, I get this error:

Processing SprintsController#show (for ::ffff:192.168.0.23 at 2010-03-09 03:35:43) [GET] Parameters: {"project_id"=>"iapuap", "action"=>"show", "id"=>"show", "controller"=>"sprints"}

NoMethodError (undefined method to_date' for nil:NilClass): vendor/plugins/redmine_sprints/app/models/burndown.rb:13:ininitialize' vendor/plugins/redmine_sprints/app/controllers/sprints_controller.rb:280:in new' vendor/plugins/redmine_sprints/app/controllers/sprints_controller.rb:280:inburndown' public/dispatch.fcgi:24

software-project commented 14 years ago

Its not a problem with issue, but with version (Sprint). You need to give version an effective date. If not diagram generator can specify date range. Effective date is not obligatory for Version, but for Sprint it is. Edit your sprint in backlog to assign sprint end date. I will try do do sth with it later on.

Alsan commented 14 years ago

I can't going into the Backlog tab either. All I can do is update the database table(s) directly. Which table/field(s) should I update manually?

Alsan commented 14 years ago

Ok, I've update the effective_date field of the versions table manually, and it is back to normal now.