refactor _new_header so that user and instructeur search share similar signature

This commit is contained in:
clemkeirua 2020-04-03 15:06:27 +02:00
parent 695fd13e77
commit 34188c432c
3 changed files with 6 additions and 5 deletions

View file

@ -219,7 +219,7 @@ module Users
end
def recherche
@dossier_id = params[:dossier_id]
@dossier_id = params[:q]
dossier = current_user.dossiers.find_by(id: @dossier_id)
if dossier