From 6ca32dbb4e89b1610afbaa8e25a51fc698ea51e9 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Wed, 6 Jul 2022 17:33:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E5=9B=9E?= =?UTF-8?q?=E6=94=B6=E7=AB=99=E6=81=A2=E5=A4=8D=E6=95=B0=E6=8D=AE=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84=E7=BC=BA=E9=99=B7=20(#15544)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014656 --user=王孝刚 【接口测试】接口定义,回收站恢复接口,报错了 https://www.tapd.cn/55049933/s/1195815 Co-authored-by: wxg0103 <727495428@qq.com> --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 2d30fd6a3d..02c3a7d7f0 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -465,6 +465,7 @@ public class ApiDefinitionService { apiDefinitionRequest.setPath(apiDefinition.getPath()); apiDefinitionRequest.setName(apiDefinition.getName()); apiDefinitionRequest.setId(apiDefinition.getId()); + apiDefinitionRequest.setModuleId(apiDefinition.getModuleId()); apiDefinitionRequest.setVersionId(extProjectVersionMapper.getDefaultVersion(request.getProjectId())); checkNameExist(apiDefinitionRequest);