Explorar o código

routes/repo/issue: implement issue pre-filling (#5521)

Signed-off-by: Charles Kenney <charlesc.kenney@gmail.com>
Charles Kenney %!s(int64=5) %!d(string=hai) anos
pai
achega
6c90d12a0c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      routes/repo/issue.go

+ 2 - 0
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)