diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-07-24 16:26:04 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-07-24 16:26:30 +0100 |
commit | 62da6ef64c1410c5a43d56ad65601853d615f256 (patch) | |
tree | 496ffeddb88a21ddd9b309c3932a71fa0483f13a /ee/app/mailers | |
parent | 681f2ee5097da52b5838046ba83c857b3934725c (diff) | |
download | gitlab-ce-62da6ef64c1410c5a43d56ad65601853d615f256.tar.gz |
Removes name reference from alert fired email subject and replaces it by the title attribute
Diffstat (limited to 'ee/app/mailers')
-rw-r--r-- | ee/app/mailers/emails/ee/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ee/app/mailers/emails/ee/projects.rb b/ee/app/mailers/emails/ee/projects.rb index 66a4850b6a9..0c9f3ee0b01 100644 --- a/ee/app/mailers/emails/ee/projects.rb +++ b/ee/app/mailers/emails/ee/projects.rb @@ -32,7 +32,7 @@ module Emails user = User.find_by(id: user_id) return unless user - subject_text = "Alert: #{@environment.name} - #{@alert.name} #{@alert.computed_operator} #{@alert.threshold} for 5 minutes" + subject_text = "Alert: #{@environment.name} - #{@alert.title} #{@alert.computed_operator} #{@alert.threshold} for 5 minutes" mail(to: user.notification_email, subject: subject(subject_text)) end |