mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge pull request '修复mp issue bug' (#187) from KingChan/forgeplus:pm_project_develop into pm_project_develop
This commit is contained in:
@@ -20,8 +20,8 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
||||
end
|
||||
|
||||
def link_index
|
||||
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] } )
|
||||
pm_issue_type = params[:pm_issue_type] || [1,2,3]
|
||||
object_issues = Issue.includes(:pm_links).where(pm_project_id: params[:pm_project_id], root_id: nil, pm_issue_type: pm_issue_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