修复:无法根据root_id查询到对应issue
This commit is contained in:
parent
71305d7304
commit
2437bda410
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue