diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-15 11:35:40 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 07:39:16 +0100 |
commit | 15d32b6a11380c257180dbc8e2691bc12e2792bc (patch) | |
tree | 9be5edc43e8ca447a79c000841b574b034c4d946 /app/mailers/emails | |
parent | a23f0e8c9ebd3a7922786d2fc4f3450c1fdecad6 (diff) | |
download | gitlab-ce-15d32b6a11380c257180dbc8e2691bc12e2792bc.tar.gz |
Add new notifications for issue move action
[ci skip]
Diffstat (limited to 'app/mailers/emails')
-rw-r--r-- | app/mailers/emails/issues.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/mailers/emails/issues.rb b/app/mailers/emails/issues.rb index 5f9adb32e00..6f54c42146c 100644 --- a/app/mailers/emails/issues.rb +++ b/app/mailers/emails/issues.rb @@ -36,6 +36,14 @@ module Emails mail_answer_thread(@issue, issue_thread_options(updated_by_user_id, recipient_id)) end + def issue_moved_email(recipient, issue, new_issue, updated_by_user) + setup_issue_mail(issue.id, recipient.id) + + @new_issue = new_issue + @new_project = new_issue.project + mail_answer_thread(issue, issue_thread_options(updated_by_user.id, recipient.id)) + end + private def setup_issue_mail(issue_id, recipient_id) |