changeset 3228:607a158fe8f5

Print templates: Fixed accessing templates by type.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 09 May 2019 17:13:16 +0200
parents 6d4d8e7ef881
children 5e773e0c05be
files pkg/controllers/printtemplates.go
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/printtemplates.go	Thu May 09 16:40:33 2019 +0200
+++ b/pkg/controllers/printtemplates.go	Thu May 09 17:13:16 2019 +0200
@@ -75,8 +75,7 @@
 	conn *sql.Conn,
 ) (jr JSONResult, err error) {
 
-	ts := mux.Vars(req)["types"]
-
+	ts := mux.Vars(req)["type"]
 	if ts == "" {
 		if ts = req.FormValue("types"); ts == "" {
 			ts = strings.Join(templateTypes, ",")