Update app/controllers/experts/avis_controller.rb
Co-authored-by: Colin Darie <colin@darie.eu>
This commit is contained in:
parent
aa10f23b43
commit
25d7333ac3
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ module Experts
|
|||
def avis_new
|
||||
@new_avis = Avis.new
|
||||
if @dossier.procedure.experts_require_administrateur_invitation?
|
||||
@experts_emails = @dossier.procedure.experts_procedures.where(revoked_at: nil).map(&:expert).map(&:email).sort
|
||||
@experts_emails = @dossier.procedure.experts_procedures.where(revoked_at: nil).map { _1.expert.email }.sort
|
||||
else
|
||||
@experts_emails = @dossier.procedure.experts.map(&:email).sort
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue