E-mail fails when assign an issue from nobody
Created by: harryxu
gitlab version: 3.1.0
I create an issue and not assign to anyone, then I assign this issue to someone from issues list. This will cause email notification failed.
But if assign an issue to someone at issue creation form or assign an issue from someone to another, that will work.
Class
Notify
Arguments
"reassigned_issue_email"
5
11
nil
Exception
ActiveRecord::RecordNotFound
Error
Couldn't find User without an ID
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/relation/finder_methods.rb:310:in `find_with_ids'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/relation/finder_methods.rb:107:in `find'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/querying.rb:5:in `find'
/home/gitlab/gitlab/app/mailers/notify.rb:26:in `reassigned_issue_email'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:167:in `process_action'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:121:in `process'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:45:in `process'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionmailer-3.2.9/lib/action_mailer/base.rb:458:in `process'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionmailer-3.2.9/lib/action_mailer/base.rb:452:in `initialize'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/resque_mailer-2.1.0/lib/resque_mailer.rb:42:in `new'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/resque_mailer-2.1.0/lib/resque_mailer.rb:42:in `perform'