🎨 Improve database template field access rollup multiple selection https://github.com/siyuan-note/siyuan/issues/14723

This commit is contained in:
Daniel 2025-04-30 11:11:18 +08:00
parent f66685fda3
commit 596c9e44af
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -505,6 +505,10 @@ func RenderTemplateCol(ial map[string]string, rowValues []*av.KeyValues, tplCont
for _, content := range v.Rollup.Contents {
if av.KeyTypeNumber == content.Type {
numbers = append(numbers, content.Number.Content)
} else if av.KeyTypeMSelect == content.Type {
for _, s := range content.MSelect {
contents = append(contents, s.Content)
}
} else {
contents = append(contents, content.String(true))
}