Save content form on gist create error (#420)

This commit is contained in:
Thomas Miceli
2025-01-29 16:00:58 +01:00
committed by GitHub
parent d363743203
commit 62d56cd1c7
7 changed files with 105 additions and 91 deletions

View File

@ -62,6 +62,7 @@ func ProcessCreate(ctx *context.Context) error {
Content: escapedValue,
})
}
ctx.SetData("dto", dto)
err = ctx.Validate(dto)
if err != nil {