[Fix #1199] Make id search work for experts
This commit is contained in:
parent
d33d488db7
commit
16254899e1
1 changed files with 3 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue