Merge pull request #6000 from betagouv/fix-experts-lookup

Correction de DossiersController#avis_for_expert
This commit is contained in:
Kara Diaby 2021-03-18 20:55:30 +01:00 committed by GitHub
commit 372a4e8eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -497,7 +497,6 @@ class Dossier < ApplicationRecord
.where(confidentiel: false)
.or(avis.where(claimant_id: expert.id, claimant_type: 'Expert', tmp_expert_migrated: true))
.or(avis.where(claimant_id: instructeur, claimant_type: 'Instructeur', tmp_expert_migrated: false))
.or(avis.where(expert: expert))
.order(created_at: :asc)
end
end