From 9c4bc3f37c24bec65c3c9815972b3f7c51e80474 Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 24 Nov 2023 09:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E6=9C=AA=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=B7=A5=E4=BD=9C=E9=A1=B9=E9=9C=80=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E5=A4=96=E9=94=AE=E4=B8=BA0=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/api/pm/sprint_issues/list_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/api/pm/sprint_issues/list_service.rb b/app/services/api/pm/sprint_issues/list_service.rb index 884506af0..bc87df84c 100644 --- a/app/services/api/pm/sprint_issues/list_service.rb +++ b/app/services/api/pm/sprint_issues/list_service.rb @@ -33,7 +33,7 @@ class Api::Pm::SprintIssues::ListService < ApplicationService private def issue_query_data - issues = @category == "unlink" ? Issue.where(pm_project_id: @pm_project_id, pm_sprint_id: nil) : Issue.where(pm_project_id: @pm_project_id).where.not(pm_sprint_id: nil) + issues = @category == "unlink" ? Issue.where(pm_project_id: @pm_project_id, pm_sprint_id: [nil, 0]) : Issue.where(pm_project_id: @pm_project_id).where.not(pm_sprint_id: [nil, 0]) issues = issues.where(pm_issue_type: @pm_issue_type) if @pm_issue_type.present?