diff options
author | Pierre de La Morinerie <pierre@capitainetrain.com> | 2014-03-24 18:11:35 +0400 |
---|---|---|
committer | Pierre de La Morinerie <pierre@capitainetrain.com> | 2014-03-24 18:11:35 +0400 |
commit | 65f5496e0210be96b4803f655d1a4c94ef1e07fe (patch) | |
tree | c38347e40b1982ebbe2599ff40df5cc3dea8cf92 /app/services | |
parent | 36ea864504854558c0dd3f626177a638022c312d (diff) |
Fix the merge notification email not being sent
The 'author_id_of_changes' attribute is not persisted in the database.
As we retrieve the merge request from the DB just before sending the
email, this attribute was always nil.
Also there was no tests for the merge notification code - tests have
been added.
Fix #6605
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/notification_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 5daf573630d..44fe9893e74 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -91,7 +91,7 @@ class NotificationService recipients = recipients.concat(project_watchers(merge_request.target_project)).uniq recipients.each do |recipient| - mailer.merged_merge_request_email(recipient.id, merge_request.id) + mailer.merged_merge_request_email(recipient.id, merge_request.id, merge_request.author_id_of_changes) end end |