mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
fix bugs
This commit is contained in:
@@ -23,9 +23,9 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
||||
pm_issue_type = params[:pm_issue_type] || [1, 2, 3]
|
||||
not_join_id = case params[:issue_filter_type]
|
||||
when 'leaf_issue'
|
||||
@issue.pm_links.pluck(:be_linkable_id)
|
||||
when 'link_issue'
|
||||
Issue.where(root_id: @issue.id).pluck(:id)
|
||||
when 'link_issue'
|
||||
@issue.pm_links.pluck(:be_linkable_id)
|
||||
end
|
||||
|
||||
not_join_id << @issue.id
|
||||
|
||||
Reference in New Issue
Block a user