move add_filter

This commit is contained in:
simon lehericey 2020-10-30 14:32:53 +01:00 committed by Paul Chavard
parent e3ee756da4
commit 4241ea05f3
2 changed files with 4 additions and 7 deletions

View file

@ -150,9 +150,7 @@ module Instructeurs
end
def add_filter
if params[:value].present?
procedure_presentation.add_filter(statut, params[:field], params[:value])
end
procedure_presentation.add_filter(statut, params[:field], params[:value])
redirect_back(fallback_location: instructeur_procedure_url(procedure))
end