Merge pull request #724 from sgmap/fix_721_bis
If gestionnaire is known on avis, use his email
This commit is contained in:
commit
2be4aceb6b
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