This commit is contained in:
yystopf 2022-08-30 10:40:27 +08:00
parent 60b3c7925d
commit aa50c50254
1 changed files with 1 additions and 1 deletions

View File

@ -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