瀏覽代碼

Fix nil tpl when campaign body is empty. Closes #1085.

Kailash Nadh 2 年之前
父節點
當前提交
a555fd3876
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      models/models.go

+ 0 - 5
models/models.go

@@ -493,11 +493,6 @@ func (c *Campaign) CompileTemplate(f template.FuncMap) error {
 		c.SubjectTpl = subjTpl
 	}
 
-	// No template or body. Nothing to compile.
-	if c.TemplateBody == "" || c.Body == "" {
-		return nil
-	}
-
 	// Compile the base template.
 	body := c.TemplateBody
 	for _, r := range regTplFuncs {