diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index ca96536a..1e996b73 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -16,7 +16,7 @@ class NotesController < ApplicationController if params[:envoiParMail] == 'oui' # Send an update mail to its author NoteMailer.create(@note).deliver - @note.contents = t('.sendByMailWrap', contents: @note.contents) + @note.contents = t '.sendByMailWrap', contents: @note.contents @note.save end diff --git a/app/views/note_mailer/create.text.haml b/app/views/note_mailer/create.text.haml index e7715e04..d949f7b6 100644 --- a/app/views/note_mailer/create.text.haml +++ b/app/views/note_mailer/create.text.haml @@ -8,6 +8,6 @@ \ =t '.edit_link' \ -= edit_moderation_url @note.event += edit_event_url @note.event, secret: @note.event.secret \ =t '.signature'