diff --git a/backend/src/main/java/io/metersphere/service/TestCaseTemplateService.java b/backend/src/main/java/io/metersphere/service/TestCaseTemplateService.java index 6cd03c8ea5..a0bf4d2777 100644 --- a/backend/src/main/java/io/metersphere/service/TestCaseTemplateService.java +++ b/backend/src/main/java/io/metersphere/service/TestCaseTemplateService.java @@ -205,6 +205,11 @@ public class TestCaseTemplateService extends TemplateBaseService { TestCaseTemplateWithBLOBs templateWithBLOBs = testCaseTemplateMapper.selectByPrimaryKey(id); if (templateWithBLOBs != null) { List columns = ReflexObjectUtil.getColumns(templateWithBLOBs, SystemReference.caseFieldColumns); + columns.forEach(item ->{ + if(item.getColumnName().equals("steps") && item.getOriginalValue().toString().equals("[{\"num\":1,\"desc\":\"\",\"result\":\"\"}]")){ + item.setOriginalValue(""); + } + }); OperatingLogDetails details = new OperatingLogDetails(JSON.toJSONString(templateWithBLOBs.getId()), null, templateWithBLOBs.getName(), templateWithBLOBs.getCreateUser(), columns); return JSON.toJSONString(details); }