Skip to content
Snippets Groups Projects
Commit 12530126 authored by Taico Aerts's avatar Taico Aerts
Browse files

Don't trigger error 500 but rather 404 for research practicum

If there is no edition offering the experiments workflow, then give a
404 error on the page.
parent e411dbdf
Branches
Tags
1 merge request!798Project Forum Release 2.8.3 - 01-08-2022
...@@ -80,6 +80,10 @@ module Admin ...@@ -80,6 +80,10 @@ module Admin
def filter_params def filter_params
current_course_edition = CourseEdition.supporting_experiment_projects.last current_course_edition = CourseEdition.supporting_experiment_projects.last
if current_course_edition.nil?
raise ActionController::RoutingError, 'Not Found'
end
edition_id = current_course_edition.id edition_id = current_course_edition.id
round_number = current_course_edition.round round_number = current_course_edition.round
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment