concern
This commit is contained in:
parent
30df608a99
commit
24d67dc6f3
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ module CreateAvisConcern
|
|||
persisted.each do |avis|
|
||||
avis.dossier.demander_un_avis!(avis)
|
||||
if avis.dossier == dossier
|
||||
AvisMailer.avis_invitation(avis).deliver_later
|
||||
if avis.experts_procedure.notify_on_new_avis?
|
||||
AvisMailer.avis_invitation(avis).deliver_later
|
||||
end
|
||||
sent_emails_addresses << avis.expert.email
|
||||
# the email format is already verified, we update value to nil
|
||||
avis.update_column(:email, nil)
|
||||
|
|
Loading…
Reference in a new issue