This commit is contained in:
parent
60b3c7925d
commit
aa50c50254
|
@ -69,7 +69,7 @@ class Organizations::TeamProjectsController < Organizations::BaseController
|
|||
end
|
||||
|
||||
def load_operate_project
|
||||
@operate_project = @organization.projects.find_by(id: project_mark) || @organization.find_by(identifier: project_mark)
|
||||
@operate_project = @organization.projects.where(id: project_mark).take || @organization.projects.where(identifier: project_mark).take
|
||||
tip_exception("项目不存在") if @operate_project.nil?
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue