From 6f25498c292be88c8a82d4384e5338f871791206 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 20 May 2024 08:46:33 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20issues=5Fcount=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=B8=8D=E5=8C=85=E5=90=AB=E5=91=A8=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/pm/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/pm/projects_controller.rb b/app/controllers/api/pm/projects_controller.rb index 4bc90bc77..2c343cf3a 100644 --- a/app/controllers/api/pm/projects_controller.rb +++ b/app/controllers/api/pm/projects_controller.rb @@ -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