Browse Source

Fix empty subject on non-tpl tx subject. Closes #898.

Kailash Nadh 2 years ago
parent
commit
6b11020a67
1 changed files with 2 additions and 0 deletions
  1. 2 0
      models/models.go

+ 2 - 0
models/models.go

@@ -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