Browse Source

更改:根据pm_project_id查询issue无法正常展示数据

pull/347/head
yystopf 2 years ago
parent
commit
fe4d563d6b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/api/pm/projects_controller.rb

+ 1
- 1
app/controllers/api/pm/projects_controller.rb View File

@@ -11,7 +11,7 @@ class Api::Pm::ProjectsController < Api::Pm::BaseController

def issues_count
return tip_exception '参数错误' unless params[:pm_project_id].present?
@issues = Issue.where(id: params[:pm_project_id])
@issues = Issue.where(pm_project_id: params[:pm_project_id])
data = {}
@issues_count = @issues.group(:pm_project_id).count
# requirement 1 task 2 bug 3


Loading…
Cancel
Save