Browse Source

fixed issues_count统计不包含周报

pull/347/head
xxq250 2 years ago
parent
commit
6f25498c29
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

@@ -21,7 +21,7 @@ class Api::Pm::ProjectsController < Api::Pm::BaseController
end
@participant_category_count = {}
if params[:participant_category].to_s == "authoredme" or params[:participant_category].to_s == "assignedme"
issues_category = @issues.joins(:issue_participants).where(issue_participants: {participant_type: %w[authored assigned atme], participant_id: current_user&.id})
issues_category = @issues.joins(:issue_participants).where(pm_issue_type: [1, 2, 3]).where(issue_participants: {participant_type: %w[authored assigned atme], participant_id: current_user&.id})
@participant_category_count = issues_category.group(:pm_project_id, "issue_participants.participant_type").count
end
case params[:participant_category].to_s


Loading…
Cancel
Save