Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Daniel596c9e44afa2
diff --git a/kernel/sql/av.go b/kernel/sql/av.go
index 97adf803f4..c4a203d341 100644
--- a/kernel/sql/av.go
+++ b/kernel/sql/av.go
@@ -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))
}