mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Improve database template field access rollup multiple selection https://github.com/siyuan-note/siyuan/issues/14723
This commit is contained in:
parent
f66685fda3
commit
596c9e44af
1 changed files with 4 additions and 0 deletions
|
|
@ -505,6 +505,10 @@ func RenderTemplateCol(ial map[string]string, rowValues []*av.KeyValues, tplCont
|
||||||
for _, content := range v.Rollup.Contents {
|
for _, content := range v.Rollup.Contents {
|
||||||
if av.KeyTypeNumber == content.Type {
|
if av.KeyTypeNumber == content.Type {
|
||||||
numbers = append(numbers, content.Number.Content)
|
numbers = append(numbers, content.Number.Content)
|
||||||
|
} else if av.KeyTypeMSelect == content.Type {
|
||||||
|
for _, s := range content.MSelect {
|
||||||
|
contents = append(contents, s.Content)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
contents = append(contents, content.String(true))
|
contents = append(contents, content.String(true))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue