noma4i / Redmine-Touch

Redmine plugin to add missing function of "Last updated by"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internal server error

djmadcat opened this issue · comments

Plugin has been successfully installed.

Environment:
  Redmine version                2.5.2.stable.13267
  Ruby version                   2.1.2-p95 (2014-05-08) [x86_64-linux]
  Rails version                  3.2.19
  Environment                    production
  Database adapter               Mysql2
Started PUT "/issues/4490" for 127.0.0.1 at 2014-07-29 15:11:32 +0400
Processing by IssuesController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"DOAHb0CjIrqtu/YBNXmbNiB6BUCANUBEGoCwyie8XXk=", "issue"=>{"tracker_id"=>"2", "subject"=>"Сделать алиас для hr-менеджера как для группы", "description"=>"", "status_id"=>"1", "priority_id"=>"4", "assigned_to_id"=>"71", "parent_issue_id"=>"", "start_date"=>"2013-07-10", "due_date"=>"2013-07-28", "estimated_hours"=>"12", "done_ratio"=>"10", "custom_field_values"=>{"3"=>"71"}, "notes"=>"", "lock_version"=>"0"}, "time_entry"=>{"hours"=>"12", "activity_id"=>"13", "comments"=>"а кто такой hr-manager?"}, "last_journal_id"=>"", "commit"=>"Принять", "id"=>"4490"}
  Current user: y.safargaliev (id=71)
  Rendered mailer/_issue.text.erb (4.6ms)
  Rendered mailer/issue_edit.text.erb within layouts/mailer (7.5ms)
  Rendered mailer/_issue.html.erb (1.4ms)
  Rendered mailer/issue_edit.html.erb within layouts/mailer (3.9ms)
Completed 500 Internal Server Error in 2118.3ms

NoMethodError (undefined method `id' for nil:NilClass):
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:153:in `call_hook'
  app/controllers/issues_controller.rb:479:in `block in save_issue_with_child_records'
  app/controllers/issues_controller.rb:466:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:188:in `update`

And after it has been successfully uninstalled field still exists and it works!=)

Have you created custom field Updated By with format User?

You need to create field as described: http://d.pr/i/PwH5

Iv added migration to create proper field