Browse Source

fixed 可用流水线仓库actived屏蔽镜像仓库

pull/347/head
xxq250 1 year ago
parent
commit
35c0ac4eec
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/organizations/projects_controller.rb

+ 1
- 1
app/controllers/organizations/projects_controller.rb View File

@@ -12,7 +12,7 @@ class Organizations::ProjectsController < Organizations::BaseController
keywords = params[:search].to_s.each_char.select { |c| c.bytes.first < 240 }.join('')
@projects = @projects.where(id: params[:pm_project_repository_ids].split(',')) if params[:pm_project_repository_ids].present?
@projects = @projects.where.not(id: params[:exclude_ids].to_s.split(",")) if params[:exclude_ids].present?
@projects = @projects.where("gpid is not null") if params[:actived].present?
@projects = @projects.where(project_type: ['mirror', 'common']).where("gpid is not null") if params[:actived].present?
@projects = @projects.ransack(name_or_identifier_cont: keywords).result if params[:search].present?
@projects = @projects.includes(:owner).order("projects.#{sort} #{sort_direction}")
@projects = paginate(@projects)


Loading…
Cancel
Save