Browse Source

Merge pull request '修复 issue list bug' (#203) from KingChan/forgeplus:pm_project_develop into pm_project_develop

pull/347/head
KingChan 2 years ago
parent
commit
404f2fb671
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      app/services/api/v1/issues/list_service.rb

+ 5
- 5
app/services/api/v1/issues/list_service.rb View File

@@ -71,13 +71,13 @@ 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 查一级目录
issues.where(root_id: nil)
# 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)
issues.where(root_id: root_id)
else
issues
issues
end

# pm_issue_type


Loading…
Cancel
Save