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

Dashboard: Add task --> Create --> Type Error can't convert nil to String #65

Closed gdbhecht closed 13 years ago

gdbhecht commented 13 years ago

If I want to create a task over the dashboard after clicking create a type error is raising. "TypeError in IssuesController#create - can't convert nil into String". I'm running redmine 1.0.3 and the latest version of scrum-pm.

error log:

Processing SprintsController#show (for 127.0.0.1 at 2010-11-11 07:05:48) [GET] Parameters: {"project_id"=>"scrum", "action"=>"show", "id"=>"show", "controller"=>"sprints"} Rendering template within layouts/base Rendering sprints/show Completed in 2196ms (View: 847, DB: 765) | 200 OK [http://localhost/projects/scrum/sprints/show]

Processing IssueSprintsController#new (for 127.0.0.1 at 2010-11-11 07:07:53) [GET] Parameters: {"user_story_id"=>"1", "project_id"=>"scrum", "action"=>"new", "controller"=>"issue_sprints"} Rendering issues/new Completed in 1070ms (View: 599, DB: 231) | 200 OK [http://localhost/projects/scrum/issue_sprints/new/1/new]

Processing IssuesController#create (for 127.0.0.1 at 2010-11-11 07:08:18) [POST] Parameters: {"commit"=>"Create", "project_id"=>"scrum", "action"=>"create", "authenticity_token"=>"LNPvDbzW5w+le0VgMQIVuJah/yRl0Q5jtQn7n2lbjRQ=", "issue"=>{"start_date"=>"2010-11-11", "user_story_id"=>"1", "estimated_hours"=>"", "priority_id"=>"4", "parent_issue_id"=>"", "fixed_version_id"=>"1", "done_ratio"=>"0", "assigned_to_id"=>"", "subject"=>"hjgjhg", "tracker_id"=>"1", "due_date"=>"", "status_id"=>"1", "description"=>""}, "controller"=>"issues", "attachments"=>{"1"=>{"description"=>""}}}

TypeError (can't convert nil into String): lib/redmine/hook.rb:63:in send' lib/redmine/hook.rb:63:incall_hook' lib/redmine/hook.rb:63:in each' lib/redmine/hook.rb:63:incall_hook' lib/redmine/hook.rb:60:in call_hook' lib/redmine/hook.rb:141:incall_hook' app/controllers/issues_controller.rb:128:in create' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:ineach' /usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendering rescues/layout (internal_server_error)

QrystaL commented 13 years ago

Solution is here: https://github.com/software-project/scrum-pm/issues#issue/63

gdbhecht commented 13 years ago

thanks, this is the solution