1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-19 16:58:37 +00:00

#809 able to set issue state to closed when create

This commit is contained in:
Unknwon
2016-05-11 12:19:26 -04:00
parent f473895c41
commit bf5faf76eb
2 changed files with 2 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ func CreateIssue(ctx *context.APIContext, form api.CreateIssueOption) {
PosterID: ctx.User.Id,
Poster: ctx.User,
Content: form.Body,
IsClosed: form.Closed,
}
if ctx.Repo.IsWriter() {