New Issue ?body= query (#5851)

* New Issue ?body= query

* Override issue template with body query

* Add documentation for issue body query
This commit is contained in:
kekero 2019-01-28 18:23:59 +03:00 committed by techknowlogick
parent 7461c5a75f
commit 3568d426fe
3 changed files with 7 additions and 2 deletions

View file

@ -374,6 +374,8 @@ func NewIssue(ctx *context.Context) {
ctx.Data["RequireSimpleMDE"] = true
ctx.Data["RequireTribute"] = true
ctx.Data["PullRequestWorkInProgressPrefixes"] = setting.Repository.PullRequest.WorkInProgressPrefixes
body := ctx.Query("body")
ctx.Data["BodyQuery"] = body
milestoneID := ctx.QueryInt64("milestone")
milestone, err := models.GetMilestoneByID(milestoneID)