Explorar o código

case value to string before read

Alexander Belanger %!s(int64=5) %!d(string=hai) anos
pai
achega
cbd40e4074
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/templater/parser/parser.go

+ 1 - 1
internal/templater/parser/parser.go

@@ -126,7 +126,7 @@ func formToLookupTable(def *ClientConfigDefault, form *models.FormYAML) map[*mod
 					lookup[content.Context] = formContextToContextConfig(def, content.Context)
 				}
 
-				if content.Value != "" {
+				if fmt.Sprintf("%v", content.Value) != "" {
 					// TODO -- case on whether value is proper query string, if not resolve it to a
 					// proper query string
 					query, err := utils.NewQuery(