mirror of
https://github.com/knadh/listmonk.git
synced 2025-10-10 07:16:16 +08:00
Fix empty subject on non-tpl tx subject. Closes #898.
This commit is contained in:
parent
c60412dcb3
commit
6b11020a67
1 changed files with 2 additions and 0 deletions
|
@ -600,6 +600,8 @@ func (m *TxMessage) Render(sub Subscriber, tpl *Template) error {
|
||||||
}
|
}
|
||||||
m.Subject = b.String()
|
m.Subject = b.String()
|
||||||
b.Reset()
|
b.Reset()
|
||||||
|
} else {
|
||||||
|
m.Subject = tpl.Subject
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue