Mercurial > gemma
changeset 3226:d84c64c0f510
Print templates: Forget to scan the type from the result set when listing available templates.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 09 May 2019 16:16:37 +0200 |
parents | 1a0985083c06 |
children | 6d4d8e7ef881 |
files | pkg/controllers/printtemplates.go |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/printtemplates.go Thu May 09 16:09:46 2019 +0200 +++ b/pkg/controllers/printtemplates.go Thu May 09 16:16:37 2019 +0200 @@ -112,7 +112,12 @@ var tmpl template var w time.Time var country sql.NullString - if err = rows.Scan(&tmpl.Name, &w, &country); err != nil { + if err = rows.Scan( + &tmpl.Name, + &tmpl.Type, + &w, + &country, + ); err != nil { return } tmpl.Time = models.Time{Time: w}