项目里程碑点击列表报500、里程碑编辑删除、项目成员删除编辑不可用
This commit is contained in:
parent
7d1dbc1656
commit
18b86adcbb
|
@ -474,10 +474,11 @@ class ApplicationController < ActionController::Base
|
||||||
render_404 unless @object.present?
|
render_404 unless @object.present?
|
||||||
|
|
||||||
@project = @object.project
|
@project = @object.project
|
||||||
if @project == nil && !@object.course_id.nil?
|
if @project == nil && @object.has_attribute?('course_id')
|
||||||
@course = @object.course
|
@course = @object.course
|
||||||
else
|
if @course.nil? && @object.has_attribute?('contest_id')
|
||||||
@contest = @object.contest
|
@contest = @object.contest
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue