[Fix #1199] Make id search work for experts

This commit is contained in:
gregoirenovel 2018-01-16 09:27:32 +01:00
parent d33d488db7
commit 16254899e1

View file

@ -5,7 +5,9 @@ module NewGestionnaire
# exact id match?
if @search_terms.to_i != 0
@dossiers = current_gestionnaire.dossiers.where(id: @search_terms.to_i)
@dossiers = current_gestionnaire.dossiers.where(id: @search_terms.to_i) +
current_gestionnaire.dossiers_from_avis.where(id: @search_terms.to_i)
@dossiers.uniq!
end
if @dossiers.nil?