Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/mailer_observer.rb')
-rw-r--r--app/models/mailer_observer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/mailer_observer.rb b/app/models/mailer_observer.rb
index 940ad1da0b6..573e98ef8dd 100644
--- a/app/models/mailer_observer.rb
+++ b/app/models/mailer_observer.rb
@@ -78,8 +78,8 @@ class MailerObserver < ActiveRecord::Observer
recipients_ids = issue.assignee_id_was, issue.assignee_id
recipients_ids.delete current_user.id
- User.find(recipients_ids).each do |user|
- Notify.changed_issue_email(user, issue).deliver
+ recipients_ids.each do |recipient_id|
+ Notify.reassigned_issue_email(recipient_id, issue.id, issue.assignee_id_was).deliver
end
end