mirror of
https://github.com/knadh/listmonk.git
synced 2025-12-05 16:00:03 +01:00
Fix broken template funcs in visual campaign update.
This commit is contained in:
@@ -157,7 +157,7 @@ func (a *App) UpdateTemplate(c echo.Context) error {
|
|||||||
// Subject is only relevant for fixed tx templates. For campaigns,
|
// Subject is only relevant for fixed tx templates. For campaigns,
|
||||||
// the subject changes per campaign and is on models.Campaign.
|
// the subject changes per campaign and is on models.Campaign.
|
||||||
var funcs template.FuncMap
|
var funcs template.FuncMap
|
||||||
if o.Type == models.TemplateTypeCampaign {
|
if o.Type == models.TemplateTypeCampaign || o.Type == models.TemplateTypeCampaignVisual {
|
||||||
o.Subject = ""
|
o.Subject = ""
|
||||||
funcs = a.manager.TemplateFuncs(nil)
|
funcs = a.manager.TemplateFuncs(nil)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user