If gestionnaire is known on avis, use his email
This commit is contained in:
parent
7fd15401ba
commit
2f34f06651
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class Backoffice::AvisController < ApplicationController
|
|||
avis = Avis.new(create_params.merge(claimant: current_gestionnaire, dossier: dossier))
|
||||
|
||||
if avis.save
|
||||
flash[:notice] = "Votre demande d'avis a bien été envoyée à #{avis.email}"
|
||||
flash[:notice] = "Votre demande d'avis a bien été envoyée à #{avis.email_to_display}"
|
||||
end
|
||||
|
||||
redirect_to backoffice_dossier_path(dossier)
|
||||
|
|
Loading…
Reference in a new issue