mirror of
https://github.com/knadh/listmonk.git
synced 2025-11-17 14:49:39 +08:00
Fix broken template funcs in visual campaign update.
This commit is contained in:
parent
f687ac89fd
commit
4a132e0322
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue