summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorGusted <postmaster@gusted.xyz>2024-04-02 15:08:53 +0200
committerGusted <postmaster@gusted.xyz>2024-04-02 15:08:53 +0200
commit27f39047c1e4c53facf99661c5ef820da92a9e65 (patch)
tree851af418c755cd43bcf97172cff7bf6a786a9a1f /routers
parentMerge pull request '[CI] backport workaround to cherry-pick in order' (#2953)... (diff)
downloadforgejo-27f39047c1e4c53facf99661c5ef820da92a9e65.tar.xz
forgejo-27f39047c1e4c53facf99661c5ef820da92a9e65.zip
[BUG] Use correct template for commitmail error
- Use the correct template that was given when there's an error in retrieving which git identity should be used. - Remove the error from the exception list.
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/editor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go
index ea0c8ddb7e..e8439cb40e 100644
--- a/routers/web/repo/editor.go
+++ b/routers/web/repo/editor.go
@@ -950,7 +950,7 @@ func getGitIdentity(ctx *context.Context, commitMailID int64, tpl base.TplName,
if email == nil || !email.IsActivated {
ctx.Data["Err_CommitMailID"] = true
- ctx.RenderWithErr(ctx.Tr("repo.editor.invalid_commit_mail"), tplEditFile, form)
+ ctx.RenderWithErr(ctx.Tr("repo.editor.invalid_commit_mail"), tpl, form)
return nil
}