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