Skip to content

Commit 30b5473

Browse files
committed
🎨 Improve av #15567
1 parent 91207ba commit 30b5473

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kernel/sql/av.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ func RenderTemplateField(ial map[string]string, keyValues []*av.KeyValues, tplCo
242242
return
243243
}
244244
ret = buf.String()
245+
if ret == "<no value>" {
246+
ret = ""
247+
}
245248
return
246249
}
247250

@@ -506,7 +509,7 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collection
506509
}
507510
}
508511

509-
func fillAttributeViewTemplateValues(attrView *av.AttributeView, collection av.Collection, ials map[string]map[string]string, items map[string][]*av.KeyValues) (err error) {
512+
func fillAttributeViewTemplateValues(attrView *av.AttributeView, collection av.Collection, ials map[string]map[string]string, items map[string][]*av.KeyValues, renderedTemplateKeyCollections map[string]av.Collection) (err error) {
510513
existTemplateField := false
511514
for _, kVals := range attrView.KeyValues {
512515
if av.KeyTypeTemplate == kVals.Key.Type {

0 commit comments

Comments
 (0)