mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
Merge pull request 'pm issue link_index 增加 pm_issues_type 筛选' (#183) from KingChan/forgeplus:pm_project_develop into pm_project_develop
This commit is contained in:
@@ -20,7 +20,8 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
||||
end
|
||||
|
||||
def link_index
|
||||
object_issues = Issue.includes(:pm_links).where( pm_project_id: params[:pm_project_id], root_id: nil ).where.not(pm_links: { linkable_id: params[:id] } )
|
||||
pm_issues_type= params[:pm_issues_type] || 1
|
||||
object_issues = Issue.includes(:pm_links).where( pm_project_id: params[:pm_project_id], root_id: nil, pm_issues_type: pm_issues_type).where.not(pm_links: { linkable_id: params[:id] } )
|
||||
@issues = kaminari_paginate(object_issues)
|
||||
render 'api/v1/issues/index'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user