DescriptionController: send initiatedMail notification

This commit is contained in:
Simon Lehericey 2017-03-06 16:24:56 +01:00
parent 3d7f04ad3d
commit 2536774519

View file

@ -71,6 +71,7 @@ class Users::DescriptionController < UsersController
if mandatory
if @dossier.draft?
@dossier.initiated!
NotificationMailer.send_notification(@dossier, @dossier.procedure.initiated_mail).deliver_now!
end
flash.notice = 'Félicitations, votre demande a bien été enregistrée.'