diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index b15a7cc9cc..6206e161a5 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -467,9 +467,10 @@ public class TestCaseService { if (StringUtils.equalsIgnoreCase(testCase.getVersionId(), defaultVersion)) { checkAndSetLatestVersion(testCase.getRefId()); } - //同步修改所有版本的模块路径 - updateOtherVersionModule(testCase); - + if (StringUtils.isNotBlank(testCase.getNodePath())) { + //同步修改所有版本的模块路径 + updateOtherVersionModule(testCase); + } } private void updateOtherVersionModule(EditTestCaseRequest testCase) {