High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix broken template funcs in visual campaign update.
Kailash Nadh4a132e0322c2
diff --git a/cmd/templates.go b/cmd/templates.goindex 596a1faa..c0b9be4d 100644--- a/cmd/templates.go+++ b/cmd/templates.go@@ -157,7 +157,7 @@ func (a *App) UpdateTemplate(c echo.Context) error {// Subject is only relevant for fixed tx templates. For campaigns,// the subject changes per campaign and is on models.Campaign.var funcs template.FuncMap- if o.Type == models.TemplateTypeCampaign {+ if o.Type == models.TemplateTypeCampaign || o.Type == models.TemplateTypeCampaignVisual {o.Subject = ""funcs = a.manager.TemplateFuncs(nil)} else {