From 25d7333ac34c195ac44a027b1b2d9048aecd8b9d Mon Sep 17 00:00:00 2001 From: mfo Date: Mon, 18 Sep 2023 16:55:07 +0200 Subject: [PATCH] Update app/controllers/experts/avis_controller.rb Co-authored-by: Colin Darie --- app/controllers/experts/avis_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/experts/avis_controller.rb b/app/controllers/experts/avis_controller.rb index d2110e760..098a254ac 100644 --- a/app/controllers/experts/avis_controller.rb +++ b/app/controllers/experts/avis_controller.rb @@ -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