Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix tx template not being cached on update. Closes #2061.

Kailash Nadh58b13afa294e
diff --git a/cmd/templates.go b/cmd/templates.go
index 9e80771e..392e2471 100644
--- a/cmd/templates.go
+++ b/cmd/templates.go
@@ -226,7 +226,7 @@ func handleUpdateTemplate(c echo.Context) error {
}
// If it's a transactional template, cache it.
- if o.Type == models.TemplateTypeTx {
+ if out.Type == models.TemplateTypeTx {
app.manager.CacheTpl(out.ID, &o)
}