diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index acf15d0c69..1e7ff681e5 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -719,19 +719,6 @@ public class ApiAutomationService { if (apiScenarioMapper.countByExample(example) > 0) { MSException.throwException(Translator.get("automation_name_already_exists") + " :" + Translator.get("api_definition_module") + request.getModulePath() + " ," + Translator.get("automation_name") + " :" + request.getName()); } - if (StringUtils.isNotBlank(request.getId())) { - ApiScenarioWithBLOBs scenario = apiScenarioMapper.selectByPrimaryKey(request.getId()); - if (scenario != null) { - example = new ApiScenarioExample(); - example.createCriteria().andRefIdEqualTo(scenario.getRefId()).andStatusNotEqualTo("Trash"); - List apiScenarios = apiScenarioMapper.selectByExample(example); - if (apiScenarios != null && apiScenarios.size() > 1) { - if (!StringUtils.equals(scenario.getName(), request.getName())) { - MSException.throwException(Translator.get("automation_versions_update")); - } - } - } - } } public ApiScenarioDTO getNewApiScenario(String id) {