1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-15 18:56:59 +00:00

[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.
This commit is contained in:
Gusted 2024-04-02 15:08:53 +02:00 committed by GitHub
parent 5a23ce083d
commit b4f566fdf5
2 changed files with 1 additions and 37 deletions

View file

@ -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
}