fix bug
This commit is contained in:
parent
19458ac963
commit
d758b367b1
|
@ -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