diff --git a/frontend/src/business/components/track/issue/IssueEditDetail.vue b/frontend/src/business/components/track/issue/IssueEditDetail.vue index 2529bfef90..c3881cfce7 100644 --- a/frontend/src/business/components/track/issue/IssueEditDetail.vue +++ b/frontend/src/business/components/track/issue/IssueEditDetail.vue @@ -158,9 +158,6 @@ export default { open(data) { let initAddFuc = this.initEdit; this.getMemberOptions(); - if (!data.creator) { - data.creator = getCurrentUserId(); - } getTemplate('field/template/issue/get/relate/', this) .then((template) => { this.issueTemplate = template; @@ -212,6 +209,9 @@ export default { } this.url = 'issues/add'; } + if (!this.form.creator) { + this.form.creator = getCurrentUserId(); + } parseCustomField(this.form, this.issueTemplate, this.customFieldForm, this.customFieldRules, null); this.$nextTick(() => { if (this.$refs.testCaseIssueList) {