mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
修复:无法根据root_id查询到对应issue
This commit is contained in:
@@ -71,8 +71,8 @@ class Api::V1::Issues::ListService < ApplicationService
|
||||
|
||||
#pm相关
|
||||
# root_id
|
||||
if pm_project_id.present?
|
||||
issues = issues.where(root_id: root_id.present? ? nil : root_id)
|
||||
if root_id.present?
|
||||
issues = issues.where(root_id: root_id).or(issues.where(id: root_id))
|
||||
end
|
||||
|
||||
# pm_issue_type
|
||||
|
||||
Reference in New Issue
Block a user