contact: fix sending a message to the messagerie

Fix #3313
This commit is contained in:
Pierre de La Morinerie 2019-01-21 17:36:36 +01:00
parent 151e5744e6
commit 022cf33853

View file

@ -60,11 +60,11 @@ class SupportController < ApplicationController
end
def create_commentaire
params = {
attributes = {
file: params[:file],
body: "[#{params[:subject]}]<br><br>#{params[:text]}"
}
commentaire = CommentaireService.build_with_email(email, dossier, params)
commentaire = CommentaireService.build_with_email(email, dossier, attributes)
commentaire.save!
end