fix: 脑图编辑缺陷保存报错
--bug=1009066 --user=陈建星 【测试跟踪】禅道缺陷模板,测试计划中,脑图模式编辑缺陷后会自动取消关联 https://www.tapd.cn/55049933/s/1084596
This commit is contained in:
parent
654a6e9484
commit
06360cbfda
|
@ -174,7 +174,9 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
|||
protected void handleIssueUpdate(IssuesUpdateRequest request) {
|
||||
request.setUpdateTime(System.currentTimeMillis());
|
||||
issuesMapper.updateByPrimaryKeySelective(request);
|
||||
handleTestCaseIssues(request);
|
||||
if (!request.isWithoutTestCaseIssue()) {
|
||||
handleTestCaseIssues(request);
|
||||
}
|
||||
}
|
||||
|
||||
protected void handleTestCaseIssues(IssuesUpdateRequest issuesRequest) {
|
||||
|
|
|
@ -28,4 +28,6 @@ public class IssuesUpdateRequest extends IssuesWithBLOBs {
|
|||
private boolean thirdPartPlatform;
|
||||
|
||||
private List<String> follows;
|
||||
|
||||
private boolean withoutTestCaseIssue; // 不更新用例和缺陷的关联关系
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
append-to-body
|
||||
ref="msEditDialog">
|
||||
<template v-slot:default="scope">
|
||||
<issue-edit-detail :plan-id="planId" :case-id="caseId" :is-plan="true" @refresh="refresh" @close="handleClose" ref="issueEditDetail"/>
|
||||
<issue-edit-detail :is-minder="isMinder" :plan-id="planId" :case-id="caseId" :is-plan="true" @refresh="refresh" @close="handleClose" ref="issueEditDetail"/>
|
||||
</template>
|
||||
</ms-edit-dialog>
|
||||
</template>
|
||||
|
@ -31,7 +31,7 @@ export default {
|
|||
return getCurrentProjectID();
|
||||
}
|
||||
},
|
||||
props: ['caseId', 'planId'],
|
||||
props: ['caseId', 'planId', 'isMinder'],
|
||||
methods: {
|
||||
open(data) {
|
||||
this.visible = true;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
ref="minder"
|
||||
/>
|
||||
<IssueRelateList :case-id="getCurCaseId()" @refresh="refreshRelateIssue" ref="issueRelate"/>
|
||||
<test-plan-issue-edit :plan-id="null" :case-id="getCurCaseId()" @refresh="refreshIssue" ref="issueEdit"/>
|
||||
<test-plan-issue-edit :is-minder="true" :plan-id="null" :case-id="getCurCaseId()" @refresh="refreshIssue" ref="issueEdit"/>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
|
|
@ -150,7 +150,8 @@ export default {
|
|||
}
|
||||
},
|
||||
caseId: String,
|
||||
planId: String
|
||||
planId: String,
|
||||
isMinder: Boolean,
|
||||
},
|
||||
computed: {
|
||||
isSystem() {
|
||||
|
@ -293,6 +294,8 @@ export default {
|
|||
param.resourceId = this.planId;
|
||||
}
|
||||
|
||||
param.withoutTestCaseIssue = this.isMinder;
|
||||
|
||||
param.thirdPartPlatform = this.enableThirdPartTemplate;
|
||||
return param;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue