From 89e7c943f741d396e97e4b575dd75caf8a38e39a Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 18 Dec 2024 10:24:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=8E=B7=E5=8F=96=E6=9C=89=E6=9D=83=E9=99=90=E7=9A=84?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1050554 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001050554 --- .../metersphere/dashboard/service/DashboardProjectService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardProjectService.java b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardProjectService.java index 7bc1c035d8..9716cfc52c 100644 --- a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardProjectService.java +++ b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardProjectService.java @@ -77,7 +77,7 @@ public class DashboardProjectService { } //检查是否开启测试计划模块 Set planProjectIds = hasUserPermissionProjectIds.get(PermissionConstants.TEST_PLAN_READ); - if (CollectionUtils.isNotEmpty(scenarioProjectIds)) { + if (CollectionUtils.isNotEmpty(planProjectIds)) { searchPlanProjectIds = planProjectIds.stream().filter(t -> finalModuleMap.get(t).contains(TEST_PLAN)).collect(Collectors.toSet()); } //检查是否开启缺陷模块