Fix #3523: Feedback notification dmails should include the text of the feedback.

This commit is contained in:
evazion
2018-01-28 14:32:38 -06:00
parent 64186c004f
commit 100c1d2828
2 changed files with 9 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ class UserFeedback < ApplicationRecord
def create_dmail
unless disable_dmail_notification
body = %{#{creator_name} created a "#{category} record":/user_feedbacks?search[user_id]=#{user_id} for your account. #{body}}
body = %{@#{creator_name} created a "#{category} record":/user_feedbacks?search[user_id]=#{user_id} for your account:\n\n#{self.body}}
Dmail.create_automated(:to_id => user_id, :title => "Your user record has been updated", :body => body)
end
end