新增:父工作项列表查询类型
This commit is contained in:
parent
947117ac5f
commit
008d9dda3e
|
@ -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…
Reference in New Issue