fix: 测试用例创建缺陷没有关联

--bug=1008299 --user=陈建星 【测试跟踪】禅道-测试用例中创建缺陷,不能添加关联关系 https://www.tapd.cn/55049933/s/10741699”
This commit is contained in:
chenjianxing 2021-11-24 15:08:59 +08:00 committed by jianxing
parent b4801f4ba0
commit 57c49ad596
3 changed files with 0 additions and 5 deletions

View File

@ -175,7 +175,6 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
}
protected void handleTestCaseIssues(IssuesUpdateRequest issuesRequest) {
if (!issuesRequest.isWithCaseId()) return;
String issuesId = issuesRequest.getId();
if (StringUtils.isNotBlank(issuesRequest.getTestCaseId())) {
insertTestCaseIssues(issuesId, issuesRequest.getTestCaseId());

View File

@ -12,8 +12,6 @@ public class IssuesUpdateRequest extends IssuesWithBLOBs {
private String content;
private String testCaseId;
private String workspaceId;
// 带caseId的更新, 默认更新是同时保存用例的关联关系脑图保存缺陷不带caseId
private boolean withCaseId = true;
private List<String> tapdUsers;
/**

View File

@ -275,9 +275,7 @@ export default {
buildCustomFields(this.form, param, this.issueTemplate);
if (this.isPlan) {
param.testCaseIds = [this.caseId];
param.withCaseId = false;
} else {
param.withCaseId = true;
param.testCaseIds = Array.from(this.testCaseContainIds);
}
if (this.planId) {