mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
更改:根据pm_project_id查询issue无法正常展示数据
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user