diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index d8b2056318..988a424674 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -841,8 +841,10 @@ public class TestPlanService { for (IssuesDao i : issue) { i.setModel(testCase.getNodePath()); i.setProjectName(testCase.getProjectName()); - String des = i.getDescription().replaceAll("
", "").replaceAll("
", ""); - i.setDescription(des); + if (StringUtils.isNotBlank(i.getDescription())) { + String des = i.getDescription().replaceAll("", "").replaceAll("
", ""); + i.setDescription(des); + } if (i.getLastmodify() == null || i.getLastmodify() == "") { if (i.getReporter() != null || i.getReporter() != "") { i.setLastmodify(i.getReporter()); diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index 0d4aa41d4c..08a80dfd18 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -86,7 +86,7 @@ show-overflow-tooltip :key="index"> -