Merge pull request #3028 from betagouv/fix-3027

[Fix #3027] Redirect to the demarches index after a demarche deletion
This commit is contained in:
Mathieu Magnin 2018-11-22 10:03:37 +01:00 committed by GitHub
commit 84433222fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ module Manager
procedure = Procedure.find(params[:id])
procedure.hide!
flash[:notice] = "La démarche a bien été supprimée, en cas d'erreur contactez un développeur."
redirect_to manager_procedure_path(procedure)
redirect_to manager_procedures_path
end
end
end