From cfe49a52e74c4059f86056cd6d318454d57b0586 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Mon, 30 May 2022 16:00:59 +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=E5=B0=86=E5=9C=BA=E6=99=AF=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=AF=BC=E5=85=A5=E5=88=B0=E5=8F=A6=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=A1=B9=E7=9B=AE=E7=9A=84=E5=9C=BA=E6=99=AF=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=AD=EF=BC=8C=E5=B0=86=E5=BC=95=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E4=BF=AE=E6=94=B9=E5=B9=B6=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=86=8D=E6=AC=A1=E7=82=B9=E5=85=A5=EF=BC=8C?= =?UTF-8?q?=E5=8F=91=E7=8E=B0=E4=BF=AE=E6=94=B9=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=20(#14139)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013201 --user=王孝刚 【接口测试】github#13497,将场景导出后,导入到另一个项目的场景列表中,将引用的场景修改并保存后,再次点入,发现修改失败 https://www.tapd.cn/55049933/s/1168169 Co-authored-by: wxg0103 <727495428@qq.com> --- .../metersphere/api/dto/automation/parse/MsScenarioParser.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsScenarioParser.java b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsScenarioParser.java index 5c3a1e164e..792d124af9 100644 --- a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsScenarioParser.java +++ b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsScenarioParser.java @@ -89,6 +89,7 @@ public class MsScenarioParser extends MsAbstractParser { item.setEnvironmentType(EnvironmentType.JSON.name()); item.setEnvironmentJson(null); item.setEnvironmentGroupId(null); + scenarioDefinition.put("projectId", this.projectId); item.setScenarioDefinition(JSONObject.toJSONString(scenarioDefinition)); } }