Browse Source

新增:父工作项列表查询类型

pull/347/head
yystopf 2 years ago
parent
commit
008d9dda3e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/api/pm/issues_controller.rb

+ 1
- 0
app/controllers/api/pm/issues_controller.rb View File

@@ -44,6 +44,7 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
@issues = Issue.where(pm_project_id: params[:pm_project_id])
.where.not(id: @issue.id)
.where.not(id: Issue.full_children_issues(@issue).map{|i|i.id})
@issues = @issues.where(pm_issue_type: params[:pm_issue_type]) if params[:pm_issue_type].present?
if params[:only_name].present?
@issues = kaminary_select_paginate(
@issues.select(:id, :subject, :project_issues_index, :updated_on, :created_on))


Loading…
Cancel
Save