summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorkekero <LoveEevee@users.noreply.github.com>2019-01-28 18:23:59 +0300
committertechknowlogick <matti@mdranta.net>2019-01-28 10:23:59 -0500
commit3568d426fece2338d6f1bedd1fd6ffe8677fc8fe (patch)
tree8d4867695111b0df44376c93ea8d6962c9cb0b72 /routers/repo
parent7461c5a75f7363aecc57b9a2c1358fb7cf92c27e (diff)
downloadgitea-3568d426fece2338d6f1bedd1fd6ffe8677fc8fe.tar.gz
gitea-3568d426fece2338d6f1bedd1fd6ffe8677fc8fe.zip
New Issue ?body= query (#5851)
* New Issue ?body= query * Override issue template with body query * Add documentation for issue body query
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/issue.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 588e727ca4..bcc648900a 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -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)