dossier: fix looking-up avis from Expert
This line causes an error on Rails 6.1. And it isn't even necessary: this line is supposed to query avis where the expert advice has been requested – but this is handled by the `if expert.dossiers.include?(self)` condition just above.
This commit is contained in:
parent
806469d72e
commit
239169e925
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue