Find the project by id and identifier too

This commit is contained in:
Karel Picman 2017-09-01 08:03:34 +02:00
parent fe059714e7
commit b7e644927f

View File

@ -474,9 +474,11 @@ private
elsif params[:project_id]
@project = Project.find_by_id params[:project_id]
else
@project = Project.find_by_identifier params[:id]
@project = Project.find params[:id]
end
end
rescue ActiveRecord::RecordNotFound
render_404
end
def workflows_layout