# HG changeset patch # User Sascha L. Teichmann # Date 1557414796 -7200 # Node ID 607a158fe8f5c45ad1360ffddad1846a5f803f60 # Parent 6d4d8e7ef881c030a9afafd854d28d129446034e Print templates: Fixed accessing templates by type. diff -r 6d4d8e7ef881 -r 607a158fe8f5 pkg/controllers/printtemplates.go --- 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, ",")