fix(测试跟踪): 修复保存公共用例库数据时,数据从公共用例库移除的缺陷 (#13041)

--bug=1012717 --user=王孝刚 [测试跟踪]
github#13004将用例树中的用例添加至公共用例库后,对用例库中该用例进行编辑并保存时,公共用例库中添加的用例被自动移除,功能实现有误,请修改
https://www.tapd.cn/55049933/s/1147448

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-04-26 10:44:43 +08:00 committed by GitHub
parent 0e559faa6a
commit 63dc1ec502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -660,6 +660,7 @@ export default {
if (!this.form.stepModel) {
this.form.stepModel = "STEP";
}
this.casePublic = tmp.casePublic;
this.form.module = testCase.nodeId;
//
this.customFieldForm = parseCustomField(this.form, this.testCaseTemplate, this.customFieldRules, testCase ? buildTestCaseOldFields(this.form) : null);

View File

@ -625,6 +625,7 @@ export default {
if (!this.form.stepModel) {
this.form.stepModel = "STEP";
}
this.casePublic = tmp.casePublic;
this.form.module = testCase.nodeId;
//
this.customFieldForm = parseCustomField(this.form, this.testCaseTemplate, this.customFieldRules, testCase ? buildTestCaseOldFields(this.form) : null);