mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-07 01:03:03 +02:00
Merge 79a0303516e35e3012cb03792f69f9407cf15f5c into 0cec4b84e2e2385d33cd19351f8a9e098a29ecc2
This commit is contained in:
commit
6b1062a33e
@ -804,6 +804,21 @@ func CompareDiff(ctx *context.Context) {
|
|||||||
if ctx.Written() {
|
if ctx.Written() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
title := ctx.FormString("title")
|
||||||
|
body := ctx.FormString("body")
|
||||||
|
expandNewPRForm := ctx.FormBool("quick_pull")
|
||||||
|
|
||||||
|
if title != "" {
|
||||||
|
ctx.Data["TitleQuery"] = title
|
||||||
|
}
|
||||||
|
if body != "" {
|
||||||
|
ctx.Data["BodyQuery"] = body
|
||||||
|
}
|
||||||
|
if expandNewPRForm || title != "" || body != "" {
|
||||||
|
ctx.Data["ExpandNewPrForm"] = true
|
||||||
|
}
|
||||||
|
|
||||||
_, templateErrs := setTemplateIfExists(ctx, pullRequestTemplateKey, pullRequestTemplateCandidates, pageMetaData)
|
_, templateErrs := setTemplateIfExists(ctx, pullRequestTemplateKey, pullRequestTemplateCandidates, pageMetaData)
|
||||||
if len(templateErrs) > 0 {
|
if len(templateErrs) > 0 {
|
||||||
ctx.Flash.Warning(renderErrorOfTemplates(ctx, templateErrs), true)
|
ctx.Flash.Warning(renderErrorOfTemplates(ctx, templateErrs), true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user