Merge pull request '修复 issue list bug' (#203) from KingChan/forgeplus:pm_project_develop into pm_project_develop
This commit is contained in:
commit
404f2fb671
|
@ -71,8 +71,8 @@ class Api::V1::Issues::ListService < ApplicationService
|
|||
issues = issues.where(fixed_version_id: milestone_id) if milestone_id.present?
|
||||
|
||||
#pm相关
|
||||
# root_id
|
||||
issues = if root_id.to_i == -1 ? # -1 查一级目录
|
||||
# root_id# -1 查一级目录
|
||||
issues = if root_id.to_i == -1
|
||||
issues.where(root_id: nil)
|
||||
elsif root_id.to_i.positive?
|
||||
issues.where(root_id: root_id)
|
||||
|
|
Loading…
Reference in New Issue