1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-02 16:35:19 +02: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() {