Browse Source

新增:排除组织项目ID参数

pull/347/head
yystopf 2 years ago
parent
commit
d55ff07296
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

@@ -11,7 +11,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]) if params[:exclude_ids].present?
@projects = @projects.where.not(id: params[:exclude_ids].to_s.split(",")) if params[:exclude_ids].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