diff --git a/app/controllers/organizations/team_projects_controller.rb b/app/controllers/organizations/team_projects_controller.rb index bbf3264f0..7dfab8e96 100644 --- a/app/controllers/organizations/team_projects_controller.rb +++ b/app/controllers/organizations/team_projects_controller.rb @@ -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