瀏覽代碼

make call createMilestoneComment on newIssue func (#8678) (#8681)

* make call createMilestoneComment on newIssue func

* make OldMilestoneID 0 instead of -1
tags/v1.10.0-rc2
jaqra 4 年之前
父節點
當前提交
fa03af8456
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      models/issue.go

+ 4
- 0
models/issue.go 查看文件

@@ -1072,6 +1072,10 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
if _, err = e.Exec("UPDATE `milestone` SET num_issues=num_issues+1 WHERE id=?", opts.Issue.MilestoneID); err != nil {
return err
}

if _, err = createMilestoneComment(e, doer, opts.Repo, opts.Issue, 0, opts.Issue.MilestoneID); err != nil {
return err
}
}

// Insert the assignees

Loading…
取消
儲存