fix(接口测试): 修复将场景导出后,导入到另一个项目的场景列表中,将引用的场景修改并保存后,再次点入,发现修改失败的缺陷 (#14139)

--bug=1013201 --user=王孝刚
【接口测试】github#13497,将场景导出后,导入到另一个项目的场景列表中,将引用的场景修改并保存后,再次点入,发现修改失败
https://www.tapd.cn/55049933/s/1168169

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-05-30 16:00:59 +08:00 committed by GitHub
parent 55910894f9
commit cfe49a52e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ public class MsScenarioParser extends MsAbstractParser<ScenarioImport> {
item.setEnvironmentType(EnvironmentType.JSON.name());
item.setEnvironmentJson(null);
item.setEnvironmentGroupId(null);
scenarioDefinition.put("projectId", this.projectId);
item.setScenarioDefinition(JSONObject.toJSONString(scenarioDefinition));
}
}