Skip to content

Commit 58b13af

Browse files
committed
Fix tx template not being cached on update. Closes #2061.
1 parent 98fed80 commit 58b13af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/templates.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func handleUpdateTemplate(c echo.Context) error {
226226
}
227227

228228
// If it's a transactional template, cache it.
229-
if o.Type == models.TemplateTypeTx {
229+
if out.Type == models.TemplateTypeTx {
230230
app.manager.CacheTpl(out.ID, &o)
231231
}
232232

0 commit comments

Comments
 (0)