From 6c90d12a0c1e70b5627eaea160e209b0ba8aa646 Mon Sep 17 00:00:00 2001 From: Charles Kenney Date: Tue, 20 Nov 2018 13:16:42 -0500 Subject: [PATCH] routes/repo/issue: implement issue pre-filling (#5521) Signed-off-by: Charles Kenney --- routes/repo/issue.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/repo/issue.go b/routes/repo/issue.go index 67071a445..55786f8f5 100644 --- a/routes/repo/issue.go +++ b/routes/repo/issue.go @@ -345,6 +345,8 @@ func NewIssue(c *context.Context) { c.Data["PageIsIssueList"] = true c.Data["RequireHighlightJS"] = true c.Data["RequireSimpleMDE"] = true + c.Data["title"] = c.Query("title") + c.Data["content"] = c.Query("content") setTemplateIfExists(c, ISSUE_TEMPLATE_KEY, IssueTemplateCandidates) renderAttachmentSettings(c)