#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() {