diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-04 15:09:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-04 15:09:39 +0300 |
commit | 8322f051740fba113c5c1f6fba96b9c943240746 (patch) | |
tree | bc695dfd5538f9378041f4a4fa6bd097ecf58954 /app/mailers/emails/issues.rb | |
parent | f9fe7cda4bdbc477d8d76e5def4023f7d03bab46 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/mailers/emails/issues.rb')
-rw-r--r-- | app/mailers/emails/issues.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/mailers/emails/issues.rb b/app/mailers/emails/issues.rb index 10a1da90e9e..b2c1351bd28 100644 --- a/app/mailers/emails/issues.rb +++ b/app/mailers/emails/issues.rb @@ -80,6 +80,16 @@ module Emails mail_answer_thread(issue, issue_thread_options(updated_by_user.id, recipient.id, reason)) end + def issue_cloned_email(recipient, issue, new_issue, updated_by_user, reason = nil) + setup_issue_mail(issue.id, recipient.id) + + @author = updated_by_user + @issue = issue + @new_issue = new_issue + @can_access_project = recipient.can?(:read_project, @new_issue.project) + mail_answer_thread(issue, issue_thread_options(updated_by_user.id, recipient.id, reason)) + end + def import_issues_csv_email(user_id, project_id, results) @user = User.find(user_id) @project = Project.find(project_id) |